These tutorials demonstrate selected features in ASP.NET version 2.0, but they are compatible with later versions of ASP.NET as well. For the current documentation, see the ASP.NET portal on the MSDN Web site.

 

 

   Welcome   |   ASP.NET   |   Web Services   |   Class Browser   
  |   I want my samples in...      

ASP.NET Quickstart Tutorials

HtmlInputRadioButton

An HtmlInputRadioButton control creates a single radio button input field. Setting the Name attribute the same way on each radio button forms a group in which only one radio button can be selected at a time. The selected state must be tested on the individual radio buttons, however.

The following sample illustrates using the HtmlInputRadioButton control.

VB HtmlInputRadioButton1.aspx
Run Sample View Source