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. Panel displayed from UserControl

Panel displayed from UserControl

Scheduled Pinned Locked Moved ASP.NET
csshelpquestion
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.
  • A Offline
    A Offline
    AB7771
    wrote on last edited by
    #1

    Hi all, I have created a user control which has a grid on a Asp:Panel, and a button. When the user control is placed on a page only the button will be displayed and on the click of this button the panel will be displayed as a popup using ModalPopupExtender. This page postbacks to itself on another button, during this event the Panel is displayed for a second and then goes off. How can that be avoided? I don't want the Blank Panel to displayed while page load. I have already tried setting the panel's visibility in various events of page life cycle to avoid it... but none works. Any help or direction would be appreciable. Thanks, AB

    Thanks & Regards, AB "Everyone is a genius at least once a year"

    J 1 Reply Last reply
    0
    • A AB7771

      Hi all, I have created a user control which has a grid on a Asp:Panel, and a button. When the user control is placed on a page only the button will be displayed and on the click of this button the panel will be displayed as a popup using ModalPopupExtender. This page postbacks to itself on another button, during this event the Panel is displayed for a second and then goes off. How can that be avoided? I don't want the Blank Panel to displayed while page load. I have already tried setting the panel's visibility in various events of page life cycle to avoid it... but none works. Any help or direction would be appreciable. Thanks, AB

      Thanks & Regards, AB "Everyone is a genius at least once a year"

      J Offline
      J Offline
      jkirkerx
      wrote on last edited by
      #2

      I think the original concept of the extender was to close or hide the panel after a postback is issued. To keep the panel visible, use the show or hide in your postback code.

      modalpopupextender.show()
      modalpopuextender.hide()

      A 1 Reply Last reply
      0
      • J jkirkerx

        I think the original concept of the extender was to close or hide the panel after a postback is issued. To keep the panel visible, use the show or hide in your postback code.

        modalpopupextender.show()
        modalpopuextender.hide()

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

        I have done the same, but the problem is during page rendering the Panel is rendered for few seconds and then goes off... I don't want the panel to be displayed until the button is clicked.

        Thanks & Regards, Pramod "Everyone is a genius at least once a year"

        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