//key代表form表单中html元素的name属性值
public static string StringForm(string key)
{
string result = null;
result = HttpContext.Current.Request.Form[key];
return string.IsNullOrEmpty(result) ? "" : result;
}
时间: 2024-10-31 12:00:39