
86
|
Chapter 5: ASP.NET Server Controls
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
Selection Controls
Selection controls allow the user to select one or more values from a list. They
include both the CheckBox and RadioButton controls, which are designed to
work in a group. The RadioButton control allows you to select only one option
out of the group, whereas the CheckBox control allows you to select zero or more
options. Table 5-3 lists the selection controls.
<asp:tablerow runat="server">
<asp:tablecell runat="server">
Button Control:
</asp:tablecell>
<asp:tablecell runat="server">
<asp:button id="MyButton" text="Click Me!!" runat="server"/>
</asp:tablecell>
</asp:tablerow>
<asp:tablerow runat="server">
<asp:tablecell runat="server">
ImageButton Control:
</asp:tablecell>
<asp:tablecell runat="server">
<asp:imagebutton id="MyImageButton"
imageurl="aspnetian.jpg" runat="Server"/>
</asp:tablecell>
</asp:tablerow>
<asp:tablerow runat="server">
<asp:tablecell runat="server">
LinkButton Control:
</asp:tablecell>
<asp:tablecell runat="server">
<asp:linkbutton id="MyLinkButton"
text="Click Me" runat="server"/>
</asp:tablecell>
</asp:tablerow>
<asp:tablerow runat="server">
<asp:tablecell runat="server">
HyperLink Control:
</asp:tablecell>
<asp:tablecell runat="server">
<asp:hyperlink id="MyHyperLink"
text="Click Me"
navigateurl="ActionControls.aspx" ...