Hey Buddy,
First of all Apply a jQuery file to the head section of your application.
After this use this code:
Page.ClientScript.RegisterStartupScript(this.GetType(), "func", "window.top.location = ('WebForm1.aspx');", true);
Here in place of window.top.location you can use alert.