C# Class System.Web.RequestHelper

HttpRequest的拓展方法
FileName: RequestHelper.cs CLRVersion: 4.0.30319.18444 Author: Devin DateTime: 2016/3/12 11:00:25 GitHub: https://github.com/v5bep7/Utility
Show file Open project: v5bep7/Utility

Public Methods

Method Description
GetInt ( this request, string key, int def ) : int

获取请求参数中的Int类型值

IsPostBack ( this request ) : bool

判断当前请求是否是POST请求

Method Details

GetInt() public static method

获取请求参数中的Int类型值
public static GetInt ( this request, string key, int def ) : int
request this
key string
def int
return int

IsPostBack() public static method

判断当前请求是否是POST请求
public static IsPostBack ( this request ) : bool
request this
return bool