JAI MATADI . .
sorry if this is silly question which i m goin to ask but i forgot the usage of checkbox control in asp.net 4.0
i have three checkboxes in the same .ASPX page .. below is my code ..
-------------------------------------------------------
mypage.aspx
---------------------
<asp:CheckBox ID="CheckBox1" runat="server" CausesValidation="True"
Text="Automatic style pages" ValidationGroup="a" TextAlign="Left" />
<br />
<asp:CheckBox ID="CheckBox2" runat="server" Text="Active Server Pages"
ValidationGroup="a" />
<br />
<asp:CheckBox ID="CheckBox3" runat="server" Text="Auto Server Page"
ValidationGroup="a" />
-------------------------------------------------------
so i have these three checkboxes on my page .. and what i want is that the user can only select one checkbox .. if one is already selected and if the user trys to select another one .. the another one can be selected but the previous one must be without it ...
i have tried to use VALIDATION GROUP property in it .. but its not working and i forgot what should i do to do this ..
which propery i should use to make something similar which i mentioned ..
thank you .
sorry if this is silly question which i m goin to ask but i forgot the usage of checkbox control in asp.net 4.0
i have three checkboxes in the same .ASPX page .. below is my code ..
-------------------------------------------------------
mypage.aspx
---------------------
<asp:CheckBox ID="CheckBox1" runat="server" CausesValidation="True"
Text="Automatic style pages" ValidationGroup="a" TextAlign="Left" />
<br />
<asp:CheckBox ID="CheckBox2" runat="server" Text="Active Server Pages"
ValidationGroup="a" />
<br />
<asp:CheckBox ID="CheckBox3" runat="server" Text="Auto Server Page"
ValidationGroup="a" />
-------------------------------------------------------
so i have these three checkboxes on my page .. and what i want is that the user can only select one checkbox .. if one is already selected and if the user trys to select another one .. the another one can be selected but the previous one must be without it ...
i have tried to use VALIDATION GROUP property in it .. but its not working and i forgot what should i do to do this ..
which propery i should use to make something similar which i mentioned ..
thank you .