string[] vs = HttpContext.Current.Request.QueryString.GetValues(key);
if (vs.Length > 1)
{
return vs[0];
}
else
{
return HttpContext.Current.Request.QueryString[key];
}
转载于:https://www.cnblogs.com/hgblog/p/3403995.html