ASP.NET Web Forms RadioButtonIt 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.
ExampleIn this example, we are creating two radio buttons and putting in a group named gender. // WebControls.aspx Code Behind// WebControls.aspx.cs For this control we have set some properties like this: Output: It produces the following output to the browser. It responses back to the client when user select the gender. Next TopicASP.NET Calender |