Window background turns gray when showing javascript alert message
<p>I m using some serverside validation and if any problem comes I m showing a pop up message using javascript using</p>

<pre><code>  page.ClientScript.RegisterClientScriptBlock
</code></pre>

<p>but when my message is displayed the background of the window turns gray.</p>

<p>can any one help me to get rid of this gray window</p>

<pre><code>       public static class Alert
{

/// &lt;summary&gt;
/// Shows a client-side JavaScript alert in the browser.
/// &lt;/summary&gt;
/// &lt;param name="message"&gt;The message to appear in the alert.&lt;/param&gt;
public static void Show(string message)
{
    // Cleans the message to allow single quotation marks
    string cleanMessage = message.Replace("'", "\\'");
    string script = "&lt;script type=\"text/javascript\"&gt;alert('" + cleanMessage + "');&lt;/script&gt;";

    // Gets the executing web page
    Page page = HttpContext.Current.CurrentHandler as Page;

    // Checks if the handler is a Page and that the script isn't allready on the Page
    if (page != null &amp;&amp; !page.ClientScript.IsClientScriptBlockRegistered("alert"))
    {
        page.ClientScript.RegisterClientScriptBlock(typeof(Alert), "alert", script);
    }
}
</code></pre>

<p>}</p>

<p>I am using this Function</p>
