i want to call or Redirect ASPX page from CLASS File or inside function of class please help me or give Hint for that or Please write the statement for call or Redirect ASPX page from or in side Class
2 Answers
You simply do :
HttpContext.Current.Response.Redirect("~/myPage.aspx")
notice 2 things please :
1) you can use the tilde (~) to indicate the root of application
2) this (by default) will raise thread abort exception .you can eliminate it by olverload the method with false.
HttpContext.Current.Response.Redirect("~/myPage.aspx",false)
3) you should add using System.Web;