Javascript alert box invoked from codebehind does not work
<p>I need alert boxes to let the user know of successful entry or data conflicts. I've tried the following and I get no errors and no alerts.</p>

<p>In the Save_Click:</p>

<pre><code>    ClientScript.RegisterStartupScript
    (GetType(), "Javascript", "javascript: UpdateComplete(); ", true);
</code></pre>

<p>also...</p>

<pre><code>    ClientScript.RegisterClientScriptBlock(GetType(), "Javascript",
    "&lt;script&gt;alert('Record Added Successfully')&lt;/script&gt;");
</code></pre>

<p>also...</p>

<pre><code>    Save.Attributes.Add("onclick","return ReqField1Validator()");
</code></pre>

<p>I've used GetType and TypeOf both.</p>

<pre><code>    ScriptManager.RegisterStartupScript(UpdatePanel1, UpdatePanel1.GetType(), "alert", "alert('See me?');", true);
    return;
</code></pre>

<p>I've also tried the very popular suggestion </p>

<pre><code>    Response.Write("&lt;script&gt;alert('Hello');&lt;/script&gt;");
</code></pre>

<p>and nothing works. I've tried many variations on these, moved them to the Updated method and the click method and all over and nothing ever happens.</p>

<p>Can anyone tell me what I'm doing wrong or what I'm overlooking? Thanks for your time and patience.</p>
