Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
My problem is that,
i have created a master page and used this master page in page called Main.aspx and set a iframe in it in iframe i have called a page saying entryscreen.aspx.I have set a modal pop up in entry screen page and when i click a button in entry screen page to show the modal pop up it covers only entry screen page behind the gray backgroun.i want to cover my whole master page behind gray background.
Posted
Updated 8-Jan-15 16:31pm
v2

1 solution

Use following as BackgroundCssClass of ModalPopupExtender.

.modalBackground
{
position: absolute;
z-index: 100;
top: 0px;
left: 0px;
background-color: #000;
filter: alpha(opacity=60);
-moz-opacity: 0.6;
opacity: 0.6;
}

It worked for me for the similar issue. In case that doesn't help, please let me know :)

Reference:
modal pop up gray background not cover whole page[^]

Update:

In fact, I found the question content is same as the question in the reference link. So, it should work :D

If it is still not working, just give a try by changing position:absolute; to position: fixed;
 
Share this answer
 
v2
Comments
Mahesh Devikar 8-Jan-15 21:56pm    
Yes you are right it is same question,

i have copied same css and run, But it wont work in my case.

So i have copied the same question because i am expecting something new answer,

as previous post is around 4 years old.

But i will try for position.

I have modified my question, Please check and suggest some alternate way to do what exactly i am doing.
Suvendu Shekhar Giri 8-Jan-15 23:40pm    
Have you tried, position:fixed; ?
Mahesh Devikar 9-Jan-15 0:20am    
Not now, but please check my revised question.I missed something which is important i.e. Main.aspx page.
Suvendu Shekhar Giri 9-Jan-15 0:50am    
OK. Try fixing the width (more than the expected screen size ex: 2000px) and setting overflow:visible;. Give it a try !
Mahesh Devikar 9-Jan-15 23:32pm    
Hi Suvendu,
It is not working,

Master page, then Main page with i-frame, then entryscreen.aspx page opening in iframe, then entry screen has modal pop which is not covering gray area of whole page.

what do you think this architecture is ok,can you suggest me better option to open page in some other control instead of iframe.

everything of my architecture is working very perfectly except this, so this issue makes me to think about it again.

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


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