|
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");
} |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?立即注册
x
|