B
Brano
HI all,
I have two radioButtons on my form. They both have autopostback = true
and they are both in the same group. They both have event handlers for
CheckedChanged event. My problem is ont of them fires ok the other one
doesn't at all here is the code for them:
I have tried to delete them drag them from the toolbox again and
restart VS.NET none helped.
VB.NET code:
Private Sub optSettle_CheckedChanged(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles optSettle.CheckedChanged
'# lock and clear other amount
txtOtherAmount.Text = ""
txtOtherAmount.Enabled = False
End Sub
Private Sub optOther2_CheckedChanged(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles optOther2.CheckedChanged
'# unlock other amount
txtOtherAmount.Enabled = True
'# set focus to txtOtherAmount
End Sub
ASP.NET code:
<asp:RadioButton class="GeneralSmall" id="optSettle" runat="server"
Text="Full amount" GroupName="ba"
AutoPostBack="True"></asp:RadioButton>
<asp:RadioButton class="GeneralSmall" id="optOther2" runat="server"
Text="Other amount" GroupName="ba"></asp:RadioButton>
THANKS for any help
I have two radioButtons on my form. They both have autopostback = true
and they are both in the same group. They both have event handlers for
CheckedChanged event. My problem is ont of them fires ok the other one
doesn't at all here is the code for them:
I have tried to delete them drag them from the toolbox again and
restart VS.NET none helped.
VB.NET code:
Private Sub optSettle_CheckedChanged(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles optSettle.CheckedChanged
'# lock and clear other amount
txtOtherAmount.Text = ""
txtOtherAmount.Enabled = False
End Sub
Private Sub optOther2_CheckedChanged(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles optOther2.CheckedChanged
'# unlock other amount
txtOtherAmount.Enabled = True
'# set focus to txtOtherAmount
End Sub
ASP.NET code:
<asp:RadioButton class="GeneralSmall" id="optSettle" runat="server"
Text="Full amount" GroupName="ba"
AutoPostBack="True"></asp:RadioButton>
<asp:RadioButton class="GeneralSmall" id="optOther2" runat="server"
Text="Other amount" GroupName="ba"></asp:RadioButton>
THANKS for any help