Click here to Skip to main content
15,894,343 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to open ajax Modal popup 10 px below from top.My modalpopup is showing in middle of page.My css and code is...


XML
<asp:ModalPopupExtender ID="ModalPopupExtender4" runat="server" TargetControlID="btnshowpopup3" PopupControlID="Pnlpop3"
CancelControlID="ImageButton5" BackgroundCssClass="modalBackground">
</asp:ModalPopupExtender>
<asp:Panel ID="Pnlpop3" runat="server" CssClass="pnl" BackColor="White" style="margin-top:10px; width:80%; left:500px; display:block;" >
 <table width="100%" cellpadding="0" ><tr><td align="right" valign="top">
  <asp:ImageButton ID="ImageButton5" ImageUrl="~/images/Cross.png" Text="Client History" runat="server"  Width="25px" Height="25px" /></td></tr></table>





CSS
.modalBackground
{
background-color: Gray;
filter: alpha(opacity=80);
opacity: 0.8;
padding:6px;
z-index: 10000;
border:Solid 3px #D55500;

}
.pnl
{
 border:Solid 3px #D55500;
  margin-left:5px;
  margin-top:10px;
}
Posted
Comments
King Fisher 8-May-14 5:29am    
you have added the Same at css and also Panel Style Property Remove any one and let me Know
Amit Vasi 9-May-14 1:31am    
I ahve removed css but not reflected.My popup is starting in middle of page...and save button is hiding below taskbar...give me solution..
Amit Vasi 8-May-14 7:04am    
I have removed but my popup is not reflected it is showing in middle of page.On my popup there is Table and dropdownlist and Save button .so Save button is showing very very below and not showing.Pls give me solution so that popup may show on 10 pix below from top.

Try this:

C#
.modalBackground
{
background-color: Gray;
filter: alpha(opacity=80);
opacity: 0.8;
z-index: 10000;

}


and your panel

C#
<asp:panel id="Panel1" runat="server" backcolor="#FAFAFA" height="400px" width="550px" style="display:none; margin-top:10px;" xmlns:asp="#unknown"></asp:panel>
 
Share this answer
 
C#
.pnl
{
  top : 10px
}
 
Share this answer
 
v2
Comments
Amit Vasi 8-May-14 7:05am    
my popup is not opening in Chrome browser.
Amit Vasi 9-May-14 1:30am    
Pls give me solution....

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