I have a page called as registration page. I want to check , if the person is already logged in, then this page should not be displayed.
I want a alert box to appear and then to be redirected to other page.
I wrote the following code
Expand|Select|Wrap|Line Numbers
- string AlertScript = "";
- AlertScript = "<script language='javascript'>alert('You are already Logged In');</script>";
- Page.ClientScript.RegisterStartupScript(this.GetType(), "onload", AlertScript);
- //Response.Redirect("index.aspx");
What should I do , so that the alert box appears and then move to the next page.
Regards
cmrhema