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. radio button default selection

radio button default selection

Scheduled Pinned Locked Moved ASP.NET
helpquestionannouncement
5 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.
  • S Offline
    S Offline
    Sandeep Akhare
    wrote on last edited by
    #1

    Hi I have radio buttons in my web page i need to set default status to No radio button, by writing checked=true in aspx code The problem is when i am changing the selection by selecting Yes it is not setting the new value, old value is getting persist I know this is silly question but i am facing it i am using update panel

    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... "

    D E 2 Replies Last reply
    0
    • S Sandeep Akhare

      Hi I have radio buttons in my web page i need to set default status to No radio button, by writing checked=true in aspx code The problem is when i am changing the selection by selecting Yes it is not setting the new value, old value is getting persist I know this is silly question but i am facing it i am using update panel

      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... "

      D Offline
      D Offline
      danasegaranea
      wrote on last edited by
      #2

      You may be setting the the checked=true in the page load event . Place the code in the if (! Page.isPostback) { checked=true ; } Try and come back Regards Dana

      S 1 Reply Last reply
      0
      • S Sandeep Akhare

        Hi I have radio buttons in my web page i need to set default status to No radio button, by writing checked=true in aspx code The problem is when i am changing the selection by selecting Yes it is not setting the new value, old value is getting persist I know this is silly question but i am facing it i am using update panel

        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... "

        E Offline
        E Offline
        EvilInside
        wrote on last edited by
        #3

        try on group property of radio button

        S 1 Reply Last reply
        0
        • D danasegaranea

          You may be setting the the checked=true in the page load event . Place the code in the if (! Page.isPostback) { checked=true ; } Try and come back Regards Dana

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

          Ya i know that but i can't do that as i have to populate whta user has selected when user visit this page again

          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
          • E EvilInside

            try on group property of radio button

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

            Group is for grouping radio buttons

            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