Request.QueryString in class file

  • Thread starter Thread starter Brian K. Williams
  • Start date Start date
B

Brian K. Williams

How can I pass the System.Web.HttpRequest to a class?

I want todo something like this...

public int getDivisionID(System.Web.HttpRequest oRequest)
{

int nDivisionID;

nDivisionID = Request.QueryString.Get("divid") == null ? 0 :
Convert.ToInt32(Request.QueryString.Get("divid"));

return nDivisionID;

}



Thanks
-Brian K. Williams
 
Back
Top