logo

ASP.NET Radiobutton Control - Groupname

Radiobutton control changes from classic asp in that it introduces a groupname attribute as a grouping behavior. Each radiobutton control will have a unique id and a boolean value, accessible by radHourlyType.checked or radHourlyType2.checked in the scripting section of your code.

<table>		
	<tr>
	<td>Type</td>
	<td align=left class=smallFont12>
	<asp:radiobutton GroupName="Type"  id=radHourlyType runat=server Checked=true></asp:radiobutton> Hourly<br>
	<asp:radiobutton GroupName="Type" id=radHourlyType2 runat=server checked=false></asp:radiobutton> Hourly and Salary
	</td>
        </tr>
</table>
s