alert script and response.redirect on aspx and .cs page in asp.net
<p>I have used this scriptmanager in my aspx page.</p>

<pre><code>ScriptManager.RegisterStartupScript(this, this.GetType(), "Redit", "alert('Registered Successfully !!'); window.location='" + Request.ApplicationPath + "/admin/CreateSubAdmin.aspx';", true);
</code></pre>

<p>when i am using it in local server than it is working correctly. and url look like : host url:xyz.aspx/admin/CreateSubAdmin.aspx</p>

<p>Underline section is in admin section.</p>

<p>but on server this is not properly working. its look like : /admin/CreateSubAdmin.aspx only.</p>

<p>but i want it to show like www.xyz.com/admin/CreateSubAdmin.aspx.</p>

<p>so what i was write wrong. plz help me.</p>

<p>Thanks in advance..</p>
