How to write action on a alert box ok button in c#?
<p>this is srinivas,
I am new to .net application development.
In my project i created one form ,when i click on submit button,those values inserted  into data base.If it is successfully inserted,then my form navigated to another form using response.redirect("home.aspx").</p>

<p>But in this when is click on submit button,values are inserted into database,but with out showing the alert message ,my page navigated to home.aspx page.</p>

<p>But my requirement is,it should have to show the alert message,after click on alert box OK button then it is navigate to another page.</p>

<p>please help me to go forward,
thank you in advance.
bye..
my code </p>

<pre><code> public static void ShowAlertMessage(string error)
    {
        Page page = HttpContext.Current.Handler as Page;
        if (page != null)
        {
            error = error.Replace("'", "");
            ScriptManager.RegisterStartupScript(page, page.GetType(), "err_msg", "alert('" + error + "');", true);

        }
    }
</code></pre>
