in code behind you can call javascript function
in code behind
string script = "Redirect();";
ScriptManager.RegisterStartupScript(this, this.GetType(), "Redirect", script, true);
And in javascript
<script type="text/javascript">
function Redirect()
{
alert("Message");
window.location="http://www.newlocation.com";
}