G
Guest
In one of my business objects I wanted to include a method like this:
public static void PageRedirect(string pageName)
{
Response.Redirect(Request.ApplicationPath + "/" + pageName);
}
The class is referencing 'System.Web' but yet I'm getting a compile error in
regard to "Request". How come this method works if sitting in the aspx.cs
file but not in the cs file in my business object?
public static void PageRedirect(string pageName)
{
Response.Redirect(Request.ApplicationPath + "/" + pageName);
}
The class is referencing 'System.Web' but yet I'm getting a compile error in
regard to "Request". How come this method works if sitting in the aspx.cs
file but not in the cs file in my business object?