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. Help me

Help me

Scheduled Pinned Locked Moved ASP.NET
help
5 Posts 5 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.
  • Z Offline
    Z Offline
    Zeeshan Ahmed Memon
    wrote on last edited by
    #1

    Dear Programmers, I want to place two check boxes on a single web form. I want that when I check CheckBox1 then Checkbox2 will be shown as Unchecked and when I check CheckBox2 then CheckBox1 will be displayed as Unchecked. I tried a lot but not was unable to find a solution. Help me please. Waiting for your reply's. Thankyou.

    S V N S 4 Replies Last reply
    0
    • Z Zeeshan Ahmed Memon

      Dear Programmers, I want to place two check boxes on a single web form. I want that when I check CheckBox1 then Checkbox2 will be shown as Unchecked and when I check CheckBox2 then CheckBox1 will be displayed as Unchecked. I tried a lot but not was unable to find a solution. Help me please. Waiting for your reply's. Thankyou.

      S Offline
      S Offline
      Sun Rays
      wrote on last edited by
      #2

      Hi, you can use checkBoxlist control for that.. And in selectedindexchanged property uncheck other checkboxes. Else if you want different checkBoxes then set AutoPostback = "True". And write code in selected index changed property of both checkBoxes. Hope it will help you.

      Thanks, Sun Rays To get something you must have to try once. My Articles

      modified on Wednesday, January 30, 2008 5:34:33 AM

      1 Reply Last reply
      0
      • Z Zeeshan Ahmed Memon

        Dear Programmers, I want to place two check boxes on a single web form. I want that when I check CheckBox1 then Checkbox2 will be shown as Unchecked and when I check CheckBox2 then CheckBox1 will be displayed as Unchecked. I tried a lot but not was unable to find a solution. Help me please. Waiting for your reply's. Thankyou.

        V Offline
        V Offline
        Venkatesh Mookkan
        wrote on last edited by
        #3

        Zeeshan Memon wrote:

        I want that when I check CheckBox1 then Checkbox2 will be shown as Unchecked and when I check CheckBox2 then CheckBox1 will be displayed as Unchecked.

        Checkbox will not do that. If you want like that only, try with JavaScript. Or Are you talking about RadioButton??

        [Venkatesh Mookkan] My: Website | Yahoo Group | Blog Spot

        1 Reply Last reply
        0
        • Z Zeeshan Ahmed Memon

          Dear Programmers, I want to place two check boxes on a single web form. I want that when I check CheckBox1 then Checkbox2 will be shown as Unchecked and when I check CheckBox2 then CheckBox1 will be displayed as Unchecked. I tried a lot but not was unable to find a solution. Help me please. Waiting for your reply's. Thankyou.

          N Offline
          N Offline
          N a v a n e e t h
          wrote on last edited by
          #4

          Use a radio button instead. Checkbox control is intended for multiple selection.

          All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions

          1 Reply Last reply
          0
          • Z Zeeshan Ahmed Memon

            Dear Programmers, I want to place two check boxes on a single web form. I want that when I check CheckBox1 then Checkbox2 will be shown as Unchecked and when I check CheckBox2 then CheckBox1 will be displayed as Unchecked. I tried a lot but not was unable to find a solution. Help me please. Waiting for your reply's. Thankyou.

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

            Instead what's the problem in using 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