For ASP.Net:
ASPX file:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplicationRnD.WebForm1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:RadioButton Text="Radio1" GroupName="rad" runat="server" ID="radio1"
AutoPostBack="True" oncheckedchanged="radio_CheckedChanged" />
<asp:RadioButton Text="Radio2" GroupName="rad" runat="server" ID="radio2"
AutoPostBack="True" oncheckedchanged="radio_CheckedChanged" />
<asp:RadioButton Text="Radio3" GroupName="rad" runat="server" ID="radio3"
AutoPostBack="True" oncheckedchanged="radio_CheckedChanged" />
</div>
</form>
</body>
</html>
C# Code(Code Behind):
namespace WebApplicationRnD
{
public partial class WebForm1 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void radio_CheckedChanged(object sender, EventArgs e)
{
radio1.Enabled = false;
}
}
}
Thanks.