CODECUBE VENTURES

One method to get Request values

Classic ASP allowed you to use one method to get either form or querystring values... this is the asp.net version.

This function allows you to get a value regardless of whether its in the Form or the QueryString collection just like classic ASP.


public Object request(String qName)
{
if (Request.Form[qName] != null)
{
return Request.Form[qName];
}
else
{
return Request.QueryString[qName];
}
}

Latest post: Digging Up the First Version of CodeCube

See more in the archives