Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
ASP .Net
what's the difference between a normal form element and a web control element?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="=?ISO-8859-1?Q?G=F6ran_Andersson?=, post: 2772178"] An html element with runat="server" will be parsed into a server control in the System.Web.UI.HtmlControls namespace. These are server controls that directly correspond to the html elements that will end up in the final page. It gives you access to the properties of the control from the server code, but it doesn't add the rich functionality of the web controls. A control like this does not require a form with runat="server" to work. A server control with the asp: prefix will be parsed into a server control in the System.Web.UI.WebControls namespace. These are rich controls that can use ViewState to retain values between postbacks, and offer you events to handle the result of the user actions. A web control might not exactly correspond to a single html element in the page, but may render several elements, or even none at all. A web control that uses ViewState has to be placed in a form with runat="server". [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
ASP .Net
what's the difference between a normal form element and a web control element?
Top