Click here to Skip to main content
12,072,067 members (61,300 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C# ASP.NET C#4.0
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 31-Mar-13 8:45am
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.
daman0187singh 5-Apr-13 2:02am
   
hi sorry for the late reply, remove the style="display:none" from the panel

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


Advertise | Privacy | Mobile
Web04 | 2.8.160208.1 | Last Updated 31 Mar 2013
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100