I have the following RadioButtons:
<asp:RadioButton id="rdoStandard" runat="server" Checked="true" GroupName="delivery" OnCheckedChanged="Check_Clicked" />
<asp:RadioButton ID="rdoExpress" runat="server" GroupName="delivery" OnCheckedChanged="Check_Clicked" />
<asp:RadioButton ID="rdoNextDay" runat="server" GroupName="delivery" OnCheckedChanged="Check_Clicked" />
And in the code behind I have this:
Protected Sub Check_Clicked(ByVal sender As Object, ByVal e As EventArgs) Handles rdoStandard.CheckedChanged, rdoExpress.CheckedChanged, rdoNextDay.CheckedChanged
RaiseEvent DeliveryOptionChanged()
End Sub
I have tried the above but also tried different ways, such as a click method for each of the RadioButtons
and I never hit the Check_Clicked
method.
I do not want to AutoPostBack
, and cannot see why you would want to if you were firing an event?
Its been a while since I used VB
and WebForms, Can someone help me with this?