Advertisement

04.04.2008 at 10:27AM PDT, ID: 23296740
[x]
Attachment Details

ModalPopupExtender not making Panel visible

Asked by fcfang in Programming for ASP.NET, C# Programming Language, .Net Editors & IDEs

Tags: C# ASP.NET AJAX, IE7 and FireFox

Hi folks,

I have a popup Panel tied to a ModalPopupExtender (using ASP.NET AJAXToolkit Version 3.0.20229). If I don't set the Panel's style visibility:hidden, everything works fine. When I click the button that the ModalPopupExtender is tied to (TargetID), the Panel pops up. However, the problem is that onload, the Panel flashes on the screen momentarily. So I set the visibility:hidden but now, the ModalPopupExtender fires and the Panel is still invisible.

If I use server side code to set Panel1.Style.Add("visibility:visible") in the button's onclick event, it works but again, the Panel shows momentarily before being moved to the center of the screen.

Can anyone think of what I'm doing wrong? I do the same visibility:hidden "trick" on Popupcontrols with no issues.

Thanks in advance.Start Free Trial
 
Loading Advertisement...
 
[+][-]04.04.2008 at 10:37AM PDT, ID: 21283961

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Programming for ASP.NET, C# Programming Language, .Net Editors & IDEs
Tags: C# ASP.NET AJAX, IE7 and FireFox
Sign Up Now!
Solution Provided By: zkeown
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628