Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. cann't set radiobuttonlist.item(0).selected=true in multiview [modified]

cann't set radiobuttonlist.item(0).selected=true in multiview [modified]

Scheduled Pinned Locked Moved ASP.NET
sysadminhelp
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mhiny
    wrote on last edited by
    #1

    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 Class

    please help me :sigh:

    modified on Thursday, September 18, 2008 5:07 AM

    E 1 Reply Last reply
    0
    • M Mhiny

      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 Class

      please help me :sigh:

      modified on Thursday, September 18, 2008 5:07 AM

      E Offline
      E Offline
      eyeseetee
      wrote on last edited by
      #2

      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.

      M 1 Reply Last reply
      0
      • E eyeseetee

        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.

        M Offline
        M Offline
        Mhiny
        wrote on last edited by
        #3

        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)

        E 1 Reply Last reply
        0
        • M Mhiny

          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)

          E Offline
          E Offline
          eyeseetee
          wrote on last edited by
          #4

          Did you do the 2nd bit of my post? Add the onclick delcaration to the aspx control. Its currently not specified. you have: you need

          The answers posted by me are suggestions only and cannot be used in anyway against me.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups