ASP.NET Web Forms RadioButton
It is an input control which is used to takes input from the user. It allows user to select a choice from the group of choices.
To create RadioButton we can drag it from the toolbox of visual studio.
This is a server side control and ASP.NET provides own tag to create it. The example is given below.
Server renders it as the HTML control and produces the following code to the browser.
This control has its own properties that are tabled below.
In this example, we are creating two radio buttons and putting in a group named gender.
For this control we have set some properties like this:
It produces the following output to the browser.
It responses back to the client when user select the gender.