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. Displaying Radio buttons dynamically

Displaying Radio buttons dynamically

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netxmlhelp
3 Posts 3 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.
  • C Offline
    C Offline
    chakran
    wrote on last edited by
    #1

    Hi, I have a requirement, I have to display radio buttons dynamically. In my xml file I have Country,paymentGateway(Radio button),and CreditCards(Radio Buttons). If I add new paymentGateway and New creditcards in xml file I have to show these as Radio buttons in browser. I have to display CreditCards in first panel and to display PaymentGateway panel below the CreditCards panel. am using Asp.net 2.0 and C#. Can any one help me. Thanks,

    S S 2 Replies Last reply
    0
    • C chakran

      Hi, I have a requirement, I have to display radio buttons dynamically. In my xml file I have Country,paymentGateway(Radio button),and CreditCards(Radio Buttons). If I add new paymentGateway and New creditcards in xml file I have to show these as Radio buttons in browser. I have to display CreditCards in first panel and to display PaymentGateway panel below the CreditCards panel. am using Asp.net 2.0 and C#. Can any one help me. Thanks,

      S Offline
      S Offline
      samMaster
      wrote on last edited by
      #2

      Hi Use . you can add each paymentGateway node as a ListItem to this list on pagelaod event.

      1 Reply Last reply
      0
      • C chakran

        Hi, I have a requirement, I have to display radio buttons dynamically. In my xml file I have Country,paymentGateway(Radio button),and CreditCards(Radio Buttons). If I add new paymentGateway and New creditcards in xml file I have to show these as Radio buttons in browser. I have to display CreditCards in first panel and to display PaymentGateway panel below the CreditCards panel. am using Asp.net 2.0 and C#. Can any one help me. Thanks,

        S Offline
        S Offline
        Sandeep Akhare
        wrote on last edited by
        #3

        As above post you can have RadioButton List to add in the Page Dynamically Now if you want to use ViewState of these radio buttons then you will have to add these buttons in page init event. If you can't add these in Page init on account of any reasone then you will have to maintain state of these controls using State Management Hope i didn't confuse you

        Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "

        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