I want to make a method in my tools library that request the querystring from the url. I created the following code, but i can't use the HttpContext in a class library.
public string RequestString(string requestParam, string Default)
{
string param = HttpContext.Current.Request.QueryString[requestParam];
if (param != null)
{
return param;
}
else
{
return Default;
}
}
I know it is possible, but i can't remember how...