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. General Programming
  3. C#
  4. Controlling Panels via RadioButtons

Controlling Panels via RadioButtons

Scheduled Pinned Locked Moved C#
csharpasp-net
2 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.
  • S Offline
    S Offline
    srt7
    wrote on last edited by
    #1

    hello all, Its a well known fact that Panels in ASP.NET can be controlled using control. My questions is if we could control those same Panels using the control. Now this should be done in this way: 1. Lets say there are 4 RadioButtons(of the same group) and 4 corresponding panels. 2. User chooses a RadioButton. 3. The corresponding panel opens up. NOT in this way: 1. There are 4 RadioButtons(of the same group), 4 corresponding panels and a regular button. 2. User chooses a RadioButton. 3. User clicks on the regular button (lets say its the "Submit" button). 3. The corresponding panel opens up. Any input is appreciated. Regards, Tiruvan

    H 1 Reply Last reply
    0
    • S srt7

      hello all, Its a well known fact that Panels in ASP.NET can be controlled using control. My questions is if we could control those same Panels using the control. Now this should be done in this way: 1. Lets say there are 4 RadioButtons(of the same group) and 4 corresponding panels. 2. User chooses a RadioButton. 3. The corresponding panel opens up. NOT in this way: 1. There are 4 RadioButtons(of the same group), 4 corresponding panels and a regular button. 2. User chooses a RadioButton. 3. User clicks on the regular button (lets say its the "Submit" button). 3. The corresponding panel opens up. Any input is appreciated. Regards, Tiruvan

      H Offline
      H Offline
      Heath Stewart
      wrote on last edited by
      #2

      This has little to nothing to do with ASP.NET - this requires client-side scripting. ASP.NET is a service that runs on the server. Without fetching a new page, ASP.NET isn't involved (this is the nature of HTTP). You can generate a class that exhibits this behavior by emiting a script that reacts to the 4 radio buttons and uses scripting and CSS styles to show and hide the panels (all of which must be written to the HTML writer) appropriately. Fortunately, Microsoft has already unofficially done this. See the Microsoft IE WebControls at http://www.asp.net/ControlGallery/default.aspx?Category=38&tabindex=2[^]. The MultiPage and TabStrip controls are what you would want. BTW, this question would be more appropriate in the ASP.NET forum.

      Microsoft MVP, Visual C# My Articles

      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