Masterpage flickers when modalpopup extender is used in asp.net 2.0

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sangam56
    New Member
    • Nov 2007
    • 68

    #1

    Masterpage flickers when modalpopup extender is used in asp.net 2.0

    Hi all.
    I have used modalpopup extender to popup a login from a panel. It is shown when a timer in the masterpage fires it's tick event. Everything is going ok. But each item a child page loaded the master page flickers by showing the panel i am using for the modal popup extender. I tried by making the panel invisible at page load but it shows javascript error in each page i open and also the modal popup is not popped up even when the timer has time to fire tick event. Moreover the timer itself is not working in this case. Any idea would be appreciable. Thanks in advance.
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    Originally posted by sangam56
    Hi all.
    I have used modalpopup extender to popup a login from a panel.
    It is shown when a timer in the masterpage fires it's tick event.

    Everything is going ok. But each item a child page loaded the master page flickers by showing the panel i am using for the modal popup extender.
    Consider putting the child controls in UpdatePanels

    Originally posted by sangam56
    I tried by making the panel invisible at page load but it shows javascript error in each page i open and also the modal popup is not popped up even when the timer has time to fire tick event. Moreover the timer itself is not working in this case.
    If you use your .NET server side code to set a panel to invisible this control will not be rendered in the browser...there fore your JavaScript will not be able to access it (because it hasn't been rendered).

    If you want to set it to invisible use CSS: style="display: none;" will work just fine (note that style="visibili ty:hidden" will make the panel invisible but the place that it exists will show up as a blank spot)

    Comment

    • sangam56
      New Member
      • Nov 2007
      • 68

      #3
      Thanks Frinavale. It pretty worked fine. Now it is quite in track. Thanks again.

      Comment

      Working...