All server controls always appear within a <form>
and tag the <form> tag must contain the runat="server"
A D V E R T I S E M E N T
ASP.NET Web Forms
All server controls must appear within a <form> tag, and the <form> tag must
contain the runat="server" attribute. The runat="server" attribute indicates
that the form should be processed on the server and it also indicates that the
enclosed controls can be accessed by server scripts
..HTML + server controls
Note: The form is always submitted to the page itself and if you specify an action attribute, it is ignored. If you omit the method attribute,it will be set to method="post" by default. Also,they are automatically assigned by ASP.NET,if you do not specify the name and id attributes.
Note: An .aspx page can only contain ONE <form runat="server">control!
You will see that ASP.NET has added these attributes to the form,if you select view source in an .aspx page containing a form with no name, method, action, or id attribute specified. It looks something like this:
Share And Enjoy:These icons link to social bookmarking sites where readers can share and discover new web pages.
ASP.NET Web Forms,
asp net web form,
asp net web forms,
web forms in asp net,
asp net 2.0 web form,
php web forms,
creating web forms,
email web forms,
create web forms,
database web forms,
dynamic web forms,
microsoft web forms,
asp net web application,
asp net web applications,