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. Grouping ASP.NET controls together

Grouping ASP.NET controls together

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netquestion
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.
  • M Offline
    M Offline
    mail572352
    wrote on last edited by
    #1

    Is there any way of grouping ASP.NET controls together? I'd like to set a group of controls as invisible rather than having to set each individual control as invisible. Just want to cut down on the amount of code and make it more readable.

    K J 2 Replies Last reply
    0
    • M mail572352

      Is there any way of grouping ASP.NET controls together? I'd like to set a group of controls as invisible rather than having to set each individual control as invisible. Just want to cut down on the amount of code and make it more readable.

      K Offline
      K Offline
      kubben
      wrote on last edited by
      #2

      Use a PlaceHolder server control. That is a really good way of making a group of control visible or invisible. Ben

      1 Reply Last reply
      0
      • M mail572352

        Is there any way of grouping ASP.NET controls together? I'd like to set a group of controls as invisible rather than having to set each individual control as invisible. Just want to cut down on the amount of code and make it more readable.

        J Offline
        J Offline
        Jon Sagara
        wrote on last edited by
        #3

        You can use an <asp:Panel /> control, too.

        Jon Sagara This is the stuff we'll drink on special occasions. To paraphrase my father-in-law, this is the kind of wine that results in kids. -- A friend Blog | Site | 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