Click here to Skip to main content
11,804,008 members (76,592 online)
Rate this: bad
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 how can i avoid the appearing/disappearing of the popup while page loading.Please suggest for the same.

Posted 31-Mar-13 7:45am
daman0187singh at 1-Apr-13 1:30am
Cant Help until you dont share more details like Code snippets
madhusudanojha at 1-Apr-13 12:53pm
hi i posted my code below. please have a look.
kishore sharma at 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 at 1-Apr-13 2:08am
may be your having problem with your jquery
madhusudanojha at 1-Apr-13 12:50pm
hi here is my code ...
In aspx source code:-
<td align="left">
<asp:Button ID="btn" runat="server" style="display: none" />
<asp:ModalPopupExtender ID="showdailyplan" runat="server"
CancelControlID="btn_Cancel" PopupControlID="pnlshowpopup"
<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;">
<td align="center" colspan="3"

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


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 at 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
0 OriginalGriff 3,140
1 Maciej Los 1,910
2 KrunalRohit 1,907
3 CPallini 1,845
4 Richard MacCutchan 1,187

Advertise | Privacy | Mobile
Web04 | 2.8.151002.1 | Last Updated 31 Mar 2013
Copyright © CodeProject, 1999-2015
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