方法一:

 HttpContext.Current.Request.RequestType == "POST"   //当前请求为:POST 

 方法二:

if(Request.ServerVariables["REQUEST_METHOD"] =="POST")

 

相关文章: