ASPForums.Net RSS Feedhttp://www.aspforums.net/Handlers/RSS.ashxLatest additions to the content that appears on ASPForums.Net(c) 2019 www.aspforums.com. All rights reserved.[Solved] Ajax ModalPopup Extender z-index not working in ASP.Net<p>&nbsp;</p> <pre class="brush: html">&lt;body style=&#34;background-color: #F7F9F4; max-width: 100%; overflow-y: auto;&#34;&gt; &lt;form id=&#34;form1&#34; runat=&#34;server&#34;&gt; &lt;asp:ScriptManager ID=&#34;ScriptManager1&#34; runat=&#34;server&#34;&gt; &lt;/asp:ScriptManager&gt; &lt;div style=&#34;background-color: White; position: fixed; width: 100%; height: 60px;&#34;&gt; &lt;br /&gt; &lt;div style=&#34;float: left;&#34; onclick=&#34;location.href=&#39;http://www.coachx.in&#39;&#34;&gt; &lt;h1 style=&#34;font-family: @Comic Sans dMS, cursive, sans-serif; font-weight: 500; font-size: large; font-variant: normal; margin-left: 5px; letter-spacing: 1px; color: #043C61; text-align: left; vertical-align: top;&#34;&gt; CoachX&lt;/h1&gt; &lt;/div&gt; &lt;div style=&#34;display: inline; margin: auto; text-align: center;&#34;&gt; &lt;div style=&#34;text-align: center;&#34;&gt; &lt;asp:LinkButton ID=&#34;lnkApplyToCoach&#34; runat=&#34;server&#34; PostBackUrl Text=&#34;Register As A Coach&#34; ForeColor=&#34;Black&#34; Style=&#34;margin-left: 10px; float: right; margin-right: 10px;&#34;&gt;&lt;/asp:LinkButton&gt; &lt;/div&gt; &lt;asp:LinkButton ID=&#34;lnkSignIn&#34; runat=&#34;server&#34; Text=&#34;Sign in&#34; ForeColor=&#34;Black&#34; Style=&#34;margin-left: 10px; float: right; margin-right: 10px;&#34;&gt;&lt;/asp:LinkButton&gt; &lt;/div&gt; &lt;/div&gt; &lt;cc1:ModalPopupExtender ID=&#34;mp2&#34; BehaviorID=&#34;behaviorIDmp1&#34; runat=&#34;server&#34; PopupControlID=&#34;Panel2&#34; TargetControlID=&#34;lnkSignIn&#34; CancelControlID=&#34;btnSignInCancel&#34; DropShadow=&#34;true&#34; BackgroundCssClass=&#34;modalBackground&#34;&gt; &lt;/cc1:ModalPopupExtender&gt; &lt;asp:Panel ID=&#34;Panel2&#34; runat=&#34;server&#34; CssClass=&#34;modalPopup&#34; align=&#34;center&#34; Style=&#34;display: none; height: 230px; width: 300px;&#34; DefaultButton=&#34;btnSignIn&#34;&gt; &lt;h1 style=&#34;font-variant: normal; font-family: Comic Sans MS; font-size: 1em; margin-left: 0px; margin-top: 0px; color: Gray;&#34;&gt; Sign In&lt;/h1&gt; &lt;asp:TextBox ID=&#34;txtSignInEmail&#34; runat=&#34;server&#34; class=&#34;txtFirstName&#34; MaxLength=&#34;100&#34; Width=&#34;200px&#34; name=&#34;email&#34; TabIndex=&#34;3&#34; value=&#34;&#34; placeholder=&#34;email address&#34; Style=&#34;margin-top: 15px;&#34; /&gt;&lt;br /&gt; &lt;asp:Label runat=&#34;server&#34; ID=&#34;lblError&#34; ForeColor=&#34;Red&#34; Visible=&#34;false&#34; Text=&#34;Incorrect Email\Password&#34;&gt;&lt;/asp:Label&gt; &lt;asp:RequiredFieldValidator EnableClientScript=&#34;true&#34; ID=&#34;reqtxtSignInEmail&#34; runat=&#34;server&#34; ValidationGroup=&#34;modal&#34; ForeColor=&#34;Red&#34; ControlToValidate=&#34;txtSignInEmail&#34; ErrorMessage=&#34;Email Address Required&#34; Display=&#34;Dynamic&#34; /&gt; &lt;asp:RegularExpressionValidator ID=&#34;regtxtSignInEmail&#34; runat=&#34;server&#34; ErrorMessage=&#34;Not Valid Email ID&#34; ValidationGroup=&#34;modal&#34; Display=&#34;Dynamic&#34; ControlToValidate=&#34;txtSignInEmail&#34; ForeColor=&#34;Red&#34; ValidationExpression=&#34;\w+([-+.&#39;]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*&#34;&gt; &lt;/asp:RegularExpressionValidator&gt; &lt;asp:TextBox ID=&#34;txtSignInPassword&#34; runat=&#34;server&#34; TextMode=&#34;Password&#34; Width=&#34;200px&#34; placeholder=&#34;passowrd&#34; class=&#34;txtFirstName&#34; name=&#34;passwd&#34; TabIndex=&#34;4&#34; Style=&#34;margin-top: 15px;&#34; /&gt;&lt;br /&gt; &lt;asp:RequiredFieldValidator EnableClientScript=&#34;true&#34; ID=&#34;reqtxtSignInPassword&#34; runat=&#34;server&#34; ValidationGroup=&#34;modal&#34; ControlToValidate=&#34;txtSignInPassword&#34; ErrorMessage=&#34;Password Required&#34; Display=&#34;Dynamic&#34; Style=&#34;color: Red;&#34; /&gt;&lt;br /&gt; &lt;asp:Button ID=&#34;btnSignIn&#34; ValidationGroup=&#34;modal&#34; class=&#34;btnempregsubmit&#34; Width=&#34;100px&#34; Height=&#34;25px&#34; runat=&#34;server&#34; Text=&#34;Log In&#34; OnClick=&#34;btnSignIn_Click&#34; CausesValidation=&#34;false&#34; Style=&#34;clear: both;&#34; /&gt; &lt;br /&gt; &lt;asp:HyperLink ID=&#34;btnSignInCancel&#34; runat=&#34;server&#34; Text=&#34;Cancel&#34; CssClass=&#34;btnClosePopup&#34;&gt;Close&lt;/asp:HyperLink&gt; &lt;/asp:Panel&gt; &lt;div class=&#34;bg-image&#34;&gt; &lt;/div&gt; &lt;div class=&#34;bg-text&#34;&gt; &lt;h1 style=&#34;font-variant: normal; font-family: Times New Roman; font-size: 2em; color: Black; margin: auto;&#34;&gt; Find a Sports Coach&lt;/h1&gt; &lt;div style=&#34;margin-top: 30px;&#34;&gt; &lt;label style=&#34;float: left;&#34;&gt; Search By Sport &lt;/label&gt; &lt;label style=&#34;float: right; margin-right: 120px;&#34;&gt; Search By Location&lt;/label&gt;&lt;br /&gt; &lt;asp:TextBox ID=&#34;txtSport&#34; Style=&#34;float: left; width: 220px; height: 30px; border-radius: 10px; background: White; padding: 15px;&#34; runat=&#34;server&#34; Font-Size=&#34;1.5em&#34; Font-Bold=&#34;false&#34; onblur=&#34;Javascript:FormatSport();&#34;&gt;&lt;/asp:TextBox&gt; &lt;asp:TextBox ID=&#34;txtLoc&#34; runat=&#34;server&#34; Style=&#34;float: right; width: 250px; height: 30px; border-radius: 10px; background: White; padding: 15px;&#34; Font-Size=&#34;1.5em&#34; Font-Bold=&#34;false&#34; placeholder=&#34;Bangalore&#34; ToolTip=&#34;Locations&#34; onblur=&#34;Javascript:FormatLocation();&#34;&gt;&lt;/asp:TextBox&gt; &lt;/div&gt; &lt;asp:Button ID=&#34;btnSearch&#34; runat=&#34;server&#34; Text=&#34;Search&#34; ValidationGroup=&#34;searchJob&#34; OnClick=&#34;btnSearch_Click&#34; Style=&#34;clear: both; margin-top: 30px; border-radius: 10px; height: 40px; background: Green; padding: 10px; width: 200px; font-size: large;&#34; /&gt; &lt;/div&gt;</pre> <p>The answer is the first top most div tag should finish just above the modalpopupextender. Earlier it was finishing at the end of code. Thanks all for your help.</p>https://www.aspforums.net:443/Threads/155693/Solved-Ajax-ModalPopup-Extender-z-index-not-working-in-ASPNet/https://www.aspforums.net:443/Threads/155693/Solved-Ajax-ModalPopup-Extender-z-index-not-working-in-ASPNet/Thu, 28 Mar 2019 23:02:05 GMT