Click here to Skip to main content
15,879,326 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi everybody,

I have create a sample web application. In that i displayed a popup form using modalpopupextendor to get info from user. Its working perfectly. But after when i convert this webpage into content form by adding master page in the solution. That page is working correctly but the popup not showing. The page gets non editable state but its not showing the popup only. I added the script manager in the mater page and also added scriptmanagerproxy in the content page too. Any help appreciated.

Thank you
Posted
Updated 19-Mar-12 17:22pm
v3

If there are no changes except the masterpage conversion, there could be a possible of mismatching of the control reference id.. What I would suggest is to check If you are opening the popup using $find({popup id}).show(). If so, please check if the popup id is correct. By inducing the master page the, runtime Id will be changed.

To be on the safer side, you can use the below code

JavaScript
$find('<%=mdlPopup.ClientID %>').show(); 


Here mdlPopup is the design time id of the modalpopup Extender control.
 
Share this answer
 
Comments
Shivapragasam 19-Mar-12 23:18pm    
Hi Lakxman,
First of all thanks for your response. I opened the modal popup from server script like

mdlPopup.Show();

that webpage gets blocked (light black color and page controls are not accessible), but only the popup is not visible.
XML
Hi guys,

          Its all my mistake in the designer. I cut the modalpopupextender code and paste it before the </content> tag. Now its showing correctly.
 
Share this answer
 
v2
Paste this code in PageLoad event.(ReportButton and ReportButton2 are the buttons that need to show the modal pop up)

ScriptManager.GetCurrent(this).RegisterPostBackControl(ReportButton);
ScriptManager.GetCurrent(this).RegisterPostBackControl(ReportButton2);
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900