Click here to Skip to main content
15,893,564 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,
I am using VS 2010 for developing a web application.i used modal popup for adding/editing some information in page.and the panel have the property visible = false or style display: none. but problem is when page is loading that time all the pop up is appearing for a time being and then it is disappearing.so how can i avoid the appearing/disappearing of the popup while page loading.Please suggest for the same.

Thanks,
Madhusudan
Posted
Comments
daman0187singh 1-Apr-13 1:30am    
Cant Help until you dont share more details like Code snippets
madhusudanojha 1-Apr-13 12:53pm    
hi i posted my code below. please have a look.
kishore sharma 1-Apr-13 1:46am    
check when the style display:none is applying on pageload,or document.ready check these things and if so then why dont u use inline style sheet for that perticuler div and then letter play with style sheet using jquery.
daman0187singh 1-Apr-13 2:08am    
may be your having problem with your jquery
madhusudanojha 1-Apr-13 12:50pm    
hi here is my code ...
In aspx source code:-
<tr>
<td align="left">
<asp:Button ID="btn" runat="server" style="display: none" />
<asp:ModalPopupExtender ID="showdailyplan" runat="server"
CancelControlID="btn_Cancel" PopupControlID="pnlshowpopup"
TargetControlID="btn">
<asp:Panel ID="pnlshowpopup" runat="server" BackColor="#FAF8CC"
BorderColor="#426BB6" BorderStyle="Solid" Width="450px" style="display:none" BorderWidth="1px">
<table cellpadding="3" cellspacing="3"
style="width: 100%; border: thin solid #3b5998; border-collapse: collapse;">
<tr>
<td align="center" colspan="3"


style="font-family: Arial; font-size: 12px; font-weight: bold; color: #3b5998;">
My  Daily Plan</td>
</tr>
</tr>
</table>

.....

this modal pop up should show only when i click on one link. but while page load also its showing and then disappearing.especially when internet speed is slow.
Please suggest some thing for this issues.

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