This page is not intended as a tutorial (for that, see the excellent references at the bottom of this page), instead it shows how ASP.Net code is translated into html and is intended for a comparision to other pages on this site.
Element Comparisions
| Purpose | html form | ASP.Net |
|---|---|---|
| Text entry box | input type="text" | asp:textbox |
| Reset Button | input type="reset" | asp:Button |
| Submit Button | input type="submit" | Button
asp:Button |
| Form Definition | form method="POST" | form runat=server |
| Multiple rows of text | textarea | textarea |
aspx file
<%= x %> + <%= y %> = <%= x+y %>
Generated html
7 + 6 = 13
| __EVENTTARGET | set to the ASP object in __doPostBack |
| __EVENTARGUMENT | set in __doPostBack |
| __VIEWSTATE | set by IIS, used to recover state information |
References