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. user controls

user controls

Scheduled Pinned Locked Moved ASP.NET
winformshelpquestion
4 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
    Marix
    wrote on last edited by
    #1

    Hi, I have an aspx web application and few usercontrols. I was wondering if there is a way I can show load these controls at runtime. Forexample, in one case I want to show one control, but in other case I want to show different control in the same web page?? can anyone help me? thenx

    N 1 Reply Last reply
    0
    • M Marix

      Hi, I have an aspx web application and few usercontrols. I was wondering if there is a way I can show load these controls at runtime. Forexample, in one case I want to show one control, but in other case I want to show different control in the same web page?? can anyone help me? thenx

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      Ctrl1.visible = false Ctrl2.visible = true

      A 1 Reply Last reply
      0
      • N Not Active

        Ctrl1.visible = false Ctrl2.visible = true

        A Offline
        A Offline
        Anonymous
        wrote on last edited by
        #3

        Yes but in this way both controls will be loaded in which case download time will increase!

        N 1 Reply Last reply
        0
        • A Anonymous

          Yes but in this way both controls will be loaded in which case download time will increase!

          N Offline
          N Offline
          Not Active
          wrote on last edited by
          #4

          Look at your output. Controls with visibility set to false do not get rendered.

          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