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. Removing items from a RadioButtonList

Removing items from a RadioButtonList

Scheduled Pinned Locked Moved ASP.NET
questiondatabase
3 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.
  • J Offline
    J Offline
    JTRizos
    wrote on last edited by
    #1

    We have an application that uses a Radiobuttonlist of 36 items for the user to identify a Reason for a visit. This application has been in use for over 3 years and has created over 40,000 records in a MS-SQL Table. The users of this application would like to recude the number of Reasons in the Radiobuttonlist down to 11. Besides online access, they are able to generate various stat reports using this data. How can I do this and still bring up records that contain Reasons that are no longer on the Radiobuttonlist without generating an SQL exception? I don't think it can easily be done. If I could hide the no longer in use reasons, I could use code behind to show these reasons in a separate field on the screen rather than in the Radiobuttonlist as a selected item. Same thing for the reports. I hope this makes sense. Any advise will be much appreciated. :confused:

    D 1 Reply Last reply
    0
    • J JTRizos

      We have an application that uses a Radiobuttonlist of 36 items for the user to identify a Reason for a visit. This application has been in use for over 3 years and has created over 40,000 records in a MS-SQL Table. The users of this application would like to recude the number of Reasons in the Radiobuttonlist down to 11. Besides online access, they are able to generate various stat reports using this data. How can I do this and still bring up records that contain Reasons that are no longer on the Radiobuttonlist without generating an SQL exception? I don't think it can easily be done. If I could hide the no longer in use reasons, I could use code behind to show these reasons in a separate field on the screen rather than in the Radiobuttonlist as a selected item. Same thing for the reports. I hope this makes sense. Any advise will be much appreciated. :confused:

      D Offline
      D Offline
      David Mujica
      wrote on last edited by
      #2

      Best thing to do is have your user do a mapping from Old reason to new reason, then clean the data and enable the new 11 radio buttons. For example: Old reason = A, New reason=B Old reason = B, New Reason=B Old reason = C, New Reason=X you get the idea. Good luck :thumbsup:

      J 1 Reply Last reply
      0
      • D David Mujica

        Best thing to do is have your user do a mapping from Old reason to new reason, then clean the data and enable the new 11 radio buttons. For example: Old reason = A, New reason=B Old reason = B, New Reason=B Old reason = C, New Reason=X you get the idea. Good luck :thumbsup:

        J Offline
        J Offline
        JTRizos
        wrote on last edited by
        #3

        I understand what you are saying. Can't see a magic way to handle this. Thank you for the prompt reply. :sigh:

        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