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.Customize JavaScript Alert Message Box like Bootstrap Alert in ASP.Net<blockquote><cite>irshad1231 says:</cite> <pre><code class="csharp spaces"></code><code class="csharp plain">ClientScript.RegisterClientScriptBlock(</code><code class="csharp keyword">this</code><code class="csharp plain">.GetType(), </code><code class="csharp string">""</code><code class="csharp plain">, </code><code class="csharp string">"alert('Wrong Answer!\\n Applying hand hygiene will not sterilize the skin, it will reduce number of microorganisms from the hand and the hands will not be pool of microorganism')"</code><code class="csharp plain">, </code><code class="csharp keyword">true</code><code class="csharp plain">);</code></pre> </blockquote> <p>&nbsp;Replace above with below. Use &lt;br /&gt;</p> <pre class="brush: csharp">ClientScript.RegisterClientScriptBlock(this.GetType(), &#34;&#34;, &#34;alert(&#39;Wrong Answer!&lt;br /&gt; Applying hand hygiene will not sterilize the skin, it will reduce number of microorganisms from the hand and the hands will not be pool of microorganism&#39;)&#34;, true);</pre> <p>&nbsp;</p>https://www.aspforums.net:443/Threads/134395/Customize-JavaScript-Alert-Message-Box-like-Bootstrap-Alert-in-ASPNet/https://www.aspforums.net:443/Threads/134395/Customize-JavaScript-Alert-Message-Box-like-Bootstrap-Alert-in-ASPNet/Tue, 12 Dec 2017 05:36:24 GMT