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.Implement Bootstrap Modal Popup in Content Page in ASP.Net<p>Hi <a class="username" rel="Terence"> Terence</a>,</p> <p>Refer below sample.</p> <p><span style="text-decoration: underline;"><strong>HTML</strong></span></p> <p><strong>MasterPage.aspx</strong></p> <pre class="brush: html">&lt;%@ Master Language=&#34;C#&#34; AutoEventWireup=&#34;true&#34; CodeFile=&#34;MasterPage.master.cs&#34; Inherits=&#34;MasterPage&#34; %&gt; &lt;!DOCTYPE html PUBLIC &#34;-//W3C//DTD XHTML 1.0 Transitional//EN&#34; &#34;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#34;&gt; &lt;html xmlns=&#34;http://www.w3.org/1999/xhtml&#34;&gt; &lt;head runat=&#34;server&#34;&gt; &lt;title&gt;&lt;/title&gt; &lt;asp:ContentPlaceHolder ID=&#34;head&#34; runat=&#34;server&#34;&gt; &lt;/asp:ContentPlaceHolder&gt; &lt;/head&gt; &lt;body&gt; &lt;form id=&#34;form1&#34; runat=&#34;server&#34;&gt; &lt;div&gt; &lt;asp:ContentPlaceHolder ID=&#34;ContentPlaceHolder1&#34; runat=&#34;server&#34;&gt; &lt;/asp:ContentPlaceHolder&gt; &lt;/div&gt; &lt;/form&gt; &lt;/body&gt; &lt;/html&gt;</pre> <p><strong>CS.aspx</strong></p> <pre class="brush: html">&lt;%@ Page Title=&#34;&#34; Language=&#34;C#&#34; MasterPageFile=&#34;~/MasterPage.master&#34; AutoEventWireup=&#34;true&#34; CodeFile=&#34;CS.aspx.cs&#34; Inherits=&#34;CS&#34; %&gt; &lt;asp:Content ID=&#34;Content1&#34; ContentPlaceHolderID=&#34;head&#34; runat=&#34;Server&#34;&gt; &lt;link href=&#34;http://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css&#34; rel=&#34;stylesheet&#34;&gt; &lt;script src=&#34;http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.8.3.min.js&#34; type=&#34;text/javascript&#34;&gt;&lt;/script&gt; &lt;script src=&#34;http://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.0.3/js/bootstrap.min.js&#34; type=&#34;text/javascript&#34;&gt;&lt;/script&gt; &lt;script src=&#34;http://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js&#34;&gt;&lt;/script&gt; &lt;script src=&#34;http://oss.maxcdn.com/respond/1.4.2/respond.min.js&#34;&gt;&lt;/script&gt; &lt;/asp:Content&gt; &lt;asp:Content ID=&#34;Content2&#34; ContentPlaceHolderID=&#34;ContentPlaceHolder1&#34; runat=&#34;Server&#34;&gt; &lt;div class=&#34;modal fade&#34; id=&#34;myModal&#34; style=&#34;display: none&#34;&gt; &lt;div class=&#34;modal-dialog&#34;&gt; &lt;div class=&#34;modal-content&#34;&gt; &lt;div class=&#34;modal-header&#34;&gt; &lt;button type=&#34;button&#34; class=&#34;close&#34; data-dismiss=&#34;modal&#34; aria-label=&#34;Close&#34;&gt; &lt;span aria-hidden=&#34;true&#34;&gt;&amp;times;&lt;/span&gt;&lt;/button&gt; &lt;h4 class=&#34;modal-title&#34;&gt; Registration done Successfully&lt;/h4&gt; &lt;/div&gt; &lt;div class=&#34;modal-body&#34;&gt; Test Modal &lt;/div&gt; &lt;div class=&#34;modal-footer&#34;&gt; &lt;button type=&#34;button&#34; class=&#34;btn btn-default&#34; data-dismiss=&#34;modal&#34;&gt; Close&lt;/button&gt; &lt;button type=&#34;button&#34; class=&#34;btn btn-primary&#34;&gt; Save changes&lt;/button&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;asp:Button runat=&#34;server&#34; ID=&#34;btnShowPopup&#34; Text=&#34;Show&#34; CssClass=&#34;btn btn-primary&#34; data-toggle=&#34;modal&#34; data-target=&#34;#myModal&#34; /&gt; &lt;/asp:Content&gt;</pre> <p><span style="text-decoration: underline;"><strong>Screenshot</strong></span></p> <p><span style="text-decoration: underline;"><strong><img src="https://imgur.com/4waYv1y.gif" alt="" width="331" height="283" /></strong></span></p>https://www.aspforums.net:443/Threads/854681/Implement-Bootstrap-Modal-Popup-in-Content-Page-in-ASPNet/https://www.aspforums.net:443/Threads/854681/Implement-Bootstrap-Modal-Popup-in-Content-Page-in-ASPNet/Fri, 31 May 2019 01:31:28 GMTImplement Bootstrap Modal Popup in Content Page in ASP.Net<p>Thanks for the effort. I will try it out and see how it work on my site.</p> <p>&nbsp;</p> <p>Terence.</p>https://www.aspforums.net:443/Threads/854681/Implement-Bootstrap-Modal-Popup-in-Content-Page-in-ASPNet/https://www.aspforums.net:443/Threads/854681/Implement-Bootstrap-Modal-Popup-in-Content-Page-in-ASPNet/Fri, 31 May 2019 06:12:48 GMTImplement Bootstrap Modal Popup in Content Page in ASP.NetInstead of saying thanks mark the reply or replies(if multiple) that helped as Answer.https://www.aspforums.net:443/Threads/854681/Implement-Bootstrap-Modal-Popup-in-Content-Page-in-ASPNet/https://www.aspforums.net:443/Threads/854681/Implement-Bootstrap-Modal-Popup-in-Content-Page-in-ASPNet/Fri, 31 May 2019 06:19:51 GMT