Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: 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 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:-
<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 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 BillWoodruff 330
1 Mathew Soji 309
2 Maciej Los 295
3 DamithSL 225
4 Afzaal Ahmad Zeeshan 217
0 OriginalGriff 6,369
1 Sergey Alexandrovich Kryukov 5,973
2 DamithSL 5,183
3 Manas Bhardwaj 4,673
4 Maciej Los 4,025


Advertise | Privacy | Mobile
Web01 | 2.8.1411019.1 | Last Updated 31 Mar 2013
Copyright © CodeProject, 1999-2014
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