Collecting checked radio button value of a HTML form in ASP
Radio buttons in a form in ASP is used to collect user's choice. Here radio button is used when user has to select one of the many options presented. For example we want the visitor should say the mode of transport he select while traveling. Here one of the four options is to be decided by the visitor so we can use radio button here. As a part of the form component radio buttons can be used along with other components of a form. We will discuss here only the handling of radio button in a form and collecting the radio button value through ASP.
A group of radio buttons will have same name but different values. In a form there can be any number of groups of radio buttons but each group of buttons will have same name.
We will try here with one group of radio button giving the visitor to select one choice but same can be extended to more than one group of radio buttons. Here is the code to display a group of radio buttons inside an html form.