Saturday 3 December 2011

How to redirect different aspx page from cs file

we cannot write response.redirect in cs file to redirect different page , here i write the code from this code we can redirect different page from .cs file.
System.Web.HttpContext.Current.Response.Redirect("ErrorPage.aspx");
where ErrorPage is your page which is use in web application.

4 comments: