Question: I am using C# with ASP.NET.

How do I check if a parameter has been received as a POST variable?

I need to do different actions if the parameter has been sent via POST or via GET.

Answer: 
Use the 

> 
> Request.Form[]
> 
> 
> 

for POST variables, 

> 
> Request.QueryString[]
> 
> 
> 

for GET.
In addition to using `Request.Form` and `Request.QueryString` and depending on your specific scenario, it may also be useful to check the `Page`'s `IsPostBack` property.

```
if (Page.IsPostBack)
{
  // HTTP Post
}
else
{
  // HTTP Get
}

```