ASP.net Reuqest请求常用操作
ASP.net Reuqest请求常用操作using System;
using System.Text;
using System.Web;
using System.Text.RegularExpressions;
namespace DTcms.Common
{
/// <summary>
/// Request操作类
/// </summary>
public class DTRequest
{
/// <summary>
/// 判断当前页面是否接收到了Post请求
/// </summary>
/// <returns>是否接收到了Post请求</returns>
public static bool IsPost()
{
return HttpContext.Current.Request.HttpMethod.Equals("POST");
}
页:
[1]