Wednesday, September 14, 2011

a way to check for POST

protected bool IsHttpPost

{

   get { return base.ControllerContext.HttpContext.Request.HttpMethod == "POST"; }

}

No comments:

Post a Comment