/// <summary>
/// 获取querystring
/// </summary>
/// <param name="s">参数名</param>
/// <returns>返回值</returns>
public string q(string s)
{
if (Request.QueryString[s] != null)
{
return Request.QueryString[s].ToString();
}
return string.Empty;
}
/// <summary>
/// 获取post得到的参数
/// </summary>
/// <param name="s">参数名</param>
/// <returns>返回值</returns>
protected string f(string s)
{
if (Request.Form[s] == null) return string.Empty;
return Request.Form[s];
}
/// 获取querystring
/// </summary>
/// <param name="s">参数名</param>
/// <returns>返回值</returns>
public string q(string s)
{
if (Request.QueryString[s] != null)
{
return Request.QueryString[s].ToString();
}
return string.Empty;
}
/// <summary>
/// 获取post得到的参数
/// </summary>
/// <param name="s">参数名</param>
/// <returns>返回值</returns>
protected string f(string s)
{
if (Request.Form[s] == null) return string.Empty;
return Request.Form[s];
}
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件!
如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
狼山资源网 Copyright www.pvsay.com
暂无“asp.net简化接收参数值的函数”评论...