welcome ,
I have a problem here
there is multi RadioButtons with the same GroupName
I have button with backend code for example ( degg26.Checked = True )
when I click the button , it should check the “degg26”
let’s suppose that I have manualy checked any radiobutton before “degg26” , and after that I click on the button , code works and “degg26” checked
If I was manualy checked any radiobutton after “degg26” , and after that I click on the button , nothing works and “degg26” wasn’t checked
any help ?!
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="tecTaqeem2.aspx.vb" Inherits="tecTaqeem2" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Button ID="Button1" runat="server" Text="Button" />
<br />
<br />
<table>
<tr>
<td>
<asp:RadioButton ID="degg20" CssClass="ChkBoxClassTxt" runat="server"
style="font-size:20px; color:black; margin:0px; height: 10px; width:10px; accent-color:red;" GroupName="G2" Text="0" />
</td>
<td>
<asp:RadioButton ID="degg23" CssClass="ChkBoxClassTxt" runat="server"
style="font-size:20px; color:black; margin:0px; height: 10px; width:10px; accent-color:red;" GroupName="G2" Text="3" />
</td>
<td>
<asp:RadioButton ID="degg24" CssClass="ChkBoxClassTxt" runat="server"
style="font-size:20px; color:black; margin:0px; height: 10px; width:10px; accent-color:red;" GroupName="G2" Text="4" />
</td>
<td>
<asp:RadioButton ID="degg25" CssClass="ChkBoxClassTxt" runat="server"
style="font-size:20px; color:black; margin:0px; height: 10px; width:10px; accent-color:red;" GroupName="G2" Text="5" />
</td>
<td>
<asp:RadioButton ID="degg26" CssClass="ChkBoxClassTxt" runat="server"
style="font-size:20px; color:black; margin:0px; height: 10px; width:10px; accent-color:red;" GroupName="G2" Text="6" />
</td>
<td>
<asp:RadioButton ID="degg27" CssClass="ChkBoxClassTxt" runat="server"
style="font-size:20px; color:black; margin:0px; height: 10px; width:10px; accent-color:red;" GroupName="G2" Text="7" />
</td>
<td>
<asp:RadioButton ID="degg28" CssClass="ChkBoxClassTxt" runat="server"
style="font-size:20px; color:black; margin:0px; height: 10px; width:10px; accent-color:red;" GroupName="G2" Text="8" />
</td>
<td>
<asp:RadioButton ID="degg29" CssClass="ChkBoxClassTxt" runat="server"
style="font-size:20px; color:black; margin:0px; height: 10px; width:10px; accent-color:red;" GroupName="G2" Text="9" />
</td>
<td>
<asp:RadioButton ID="degg210" CssClass="ChkBoxClassTxt" runat="server"
style="font-size:20px; color:black; margin:0px; height: 10px; width:10px; accent-color:red;" GroupName="G2" Text="10" />
</td>
</tr>
</table>
</div>
</form>
</body>
</html>