Dura Soft
.NET-53
HTML Server Controls
•Think of these as macros
–they expand to HTML code
•They appear like HTML tags
–But much shorter and replace several lines of HTML
•Smart enough to remember state between pages
•
<FORM RUNAT="SERVER">
State:
<ASP:ListBox ID="StateSelect" RUNAT="SERVER">
<ASP:ListItem>CA</ASP:ListItem>
<ASP:ListItem>GA</ASP:ListItem>
<ASP:ListItem>MA</ASP:ListItem>
<ASP:ListItem>TX</ASP:ListItem>
<ASP:ListItem>VA</ASP:ListItem>
</ASP:ListBox>
<INPUT type="SUBMIT" value="Send">
</FORM>