绑定HTML控件的数据 [英] Binding data for HTML control

查看:64
本文介绍了绑定HTML控件的数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



早上好,



我有一个Html页面和一个aspx页面,在运行时我将它呈现给那个aspx页。



所以通过使用一些<! - #INCLUDE FILE =.. \\\\\\\\\\\\\\\\声明我正在渲染它然后我需要将aspx.cs中的HTML控件与一些静态数据绑定。

例如对于City(选择HTML控件)我需要绑定一些城市Hyderabad,Mumbai,德里,金奈等。



那么我怎样才能从aspx.cs页面上做到这一点



请帮忙我举个例子



谢谢。

解决方案

检查这个

ASP.NET中的经典ASP包含文件 [ ^ ]

Hi,
Good Morning,

I have an Html page and an aspx page and at runtime I am rendering it to that aspx page.

So by using some <!--#INCLUDE FILE="..\HTML\DoctorRegistration.html"--> statement I am rendering it and then I need to bind the HTML controls in aspx.cs with some static data.
For eg for City (Select HTML control) I need to bind some cities Hyderabad,Mumbai,Delhi,Chennai etc .

So how can I do it from aspx.cs page

Please help me with an example

Thank You.

解决方案

Check this
Classic ASP Include Files in ASP.NET[^]


这篇关于绑定HTML控件的数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆