I have on indexChanged event for a RadioButtonList
I want that when the page first loaded it will generate the event
I tried
and also
It's only selects but it is not generate the event?
maybe I have to cal the sub RadioButtonList1_SelectedIndexChanged
but with whitch arrguments?
How can this be done?
thanks
VB.NET:
Protected Sub RadioButtonList1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles RadioButtonList1.SelectedIndexChanged
MultiView1.ActiveViewIndex = RadioButtonList1.SelectedValue
End Sub
I want that when the page first loaded it will generate the event
I tried
VB.NET:
If Not IsPostBack Then
Dim li As ListItem = RadioButtonList1.Items(2)
li.Selected = True
End If
and also
VB.NET:
RadioButtonList1.SelectedValue = 2
maybe I have to cal the sub RadioButtonList1_SelectedIndexChanged
but with whitch arrguments?
How can this be done?
thanks