cann't set radiobuttonlist.item(0).selected=true in multiview [modified]
-
Hi I cann't set radiobuttonlist.item(0).selected = true in multiview control. When i change the radiobuttonlist selected to item(1) in view 2 and back to view 1 and go to view 2 again .I cann't change selected to item 0. .aspx page
Untitled Page asp:MultiView ID="MultiView1" runat="server"> x t
code behind
Partial Class test
Inherits PageBase
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Me.RadioButtonList1.Items(0).Selected = True
Me.MultiView1.ActiveViewIndex = 1
End Sub
Protected Sub Button3_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button3.Click
Me.MultiView1.ActiveViewIndex = 0
End Sub
End Classplease help me :sigh:
modified on Thursday, September 18, 2008 5:07 AM
-
Hi I cann't set radiobuttonlist.item(0).selected = true in multiview control. When i change the radiobuttonlist selected to item(1) in view 2 and back to view 1 and go to view 2 again .I cann't change selected to item 0. .aspx page
Untitled Page asp:MultiView ID="MultiView1" runat="server"> x t
code behind
Partial Class test
Inherits PageBase
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Me.RadioButtonList1.Items(0).Selected = True
Me.MultiView1.ActiveViewIndex = 1
End Sub
Protected Sub Button3_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button3.Click
Me.MultiView1.ActiveViewIndex = 0
End Sub
End Classplease help me :sigh:
modified on Thursday, September 18, 2008 5:07 AM
-
You need to close your RadioList with: You also need to set the onclick for the button in the aspx code
The answers posted by me are suggestions only and cannot be used in anyway against me.
-
Thank for reply but i already closed tag radiobuttonlist.But i don't know why it's not show in web. Any one can help (sorry for my bad english)