ModalPopupExtender item appears on page load (debug=false)

Last post 08-31-2007 4:58 AM by luchiian. 3 replies.

Sort Posts:

  • Huh? [:^)] ModalPopupExtender item appears on page load (debug=false)

    09-29-2006, 11:39 AM
    • Member
      10 point Member
    • fldavem
    • Member since 08-23-2006, 5:41 PM
    • Posts 2

    When my page loads, my panel (controlled by a link & Modal Popup Extender) briefly appears. I've read the FAQ (item #1) but it doesn't seem to apply to Modal Popups.  I've pasted my simple code here.  Can anyone help with this?   I'm a newbie at Atlas & Ajax!  Also, I've set the debug to false in the web.config and ran it without debugging. Same result.

    Thanks in advance,
    Dave
     

        <form id="form1" runat="server">
            <atlas:ScriptManager ID="ScriptManager1" runat="server" />
            <div>
    			<asp:LinkButton ID="LinkButton1" runat="server" 
    				Style="position: relative">LinkButton
    			</asp:LinkButton>
    			<cc1:ModalPopupExtender ID="ModalPopupExtender1" runat="server">
    				<cc1:ModalPopupProperties 
    					CancelControlID="cancelButton" 
    					DropShadow="True" 
    					OkControlID="okButton"
    					PopupControlID="Panel1" 
    					TargetControlID="LinkButton1">
    				</cc1:ModalPopupProperties>
    			</cc1:ModalPopupExtender>
    			<asp:Panel ID="Panel1" runat="server" Height="71px" 
    				Style="left: 46px; position: static; top: 11px" 
    				Width="147px" BackColor="Yellow">
    				<asp:Button ID="okButton" runat="server" 
    					Style="position: relative" Text="OK" />
    				<asp:Button ID="cancelButton" runat="server" 
    					Style="position: relative; left: 53px; top: 0px;" 
    					Text="Cancel" /></asp:Panel>
            </div>
        </form>
    
     
    Filed under:
  • Re: ModalPopupExtender item appears on page load (debug=false)

    09-29-2006, 4:24 PM
    • Member
      173 point Member
    • riceboyler
    • Member since 05-25-2005, 3:40 PM
    • Posts 37

    In the <style> attribute of the panel, include "display:none;" and it won't appear on page load.

     

  • Re: ModalPopupExtender item appears on page load (debug=false)

    09-29-2006, 5:04 PM
    • Member
      10 point Member
    • fldavem
    • Member since 08-23-2006, 5:41 PM
    • Posts 2
    riceboyler:

    In the <style> attribute of the panel, include "display:none;" and it won't appear on page load.

     riceboyler: Thanks for the help.  That works great.  For a few hours I was tinkering with CSS and that also helped.  Let me know if you (or anyone) needs the code for that.

     Again, thanks!

  • Re: ModalPopupExtender item appears on page load (debug=false)

    08-31-2007, 4:58 AM
    • Member
      2 point Member
    • luchiian
    • Member since 02-01-2006, 9:30 AM
    • Posts 1

    Please share the code, if you can.

    Thank you.

Page 1 of 1 (4 items)