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
 
Nevermind, solved my own problem.

Thanks
-Brian K. Williams
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top