ASP.NET2.0 - Web服务器控件和Html服务器控件区别

By default, HTML elements within an ASP.NET file are treated as literal text and you cannot reference them in server-side code. To make these elements programmatically accessible, you can indicate that an HTML element should be treated as a server control by adding the runat="server" attribute. You can also set the element's id attribute to give you way to programmatically reference the control. You then set attributes to declare property arguments and event bindings on server control instances.

http://msdn2.microsoft.com/en-us/library/620b4fzf.aspx 
posted @ 2008-04-29 10:53  许晓光  阅读(286)  评论(0)    收藏  举报