if (HttpContext.Current.Request.HttpMethod == "POST") { // The action is a POST. }
if (HttpContext.Current.Request.HttpMethod == "GET") { // The action is a GET.}
No comments:
Post a Comment