string check=Request["u"];是什么意思 谢谢

来源:百度知道 编辑:UC知道 时间:2024/09/22 07:06:00
public partial class Addinfo : System.Web.UI.Page
{
protected System.Web.UI.WebControls.Button Button2;

protected void Page_Load(object sender, System.EventArgs e)
{
string check=Request["u"];
string house=Request["H"];
if(check=="0")
{
this.Label10.Text="添加房屋信息";

}
else if(check=="1")
{
this.housename.ReadOnly=true;
this.housename.BackColor=Color.Gainsboro;
this.housename.Text=house;
this.Label10.Text="修改房屋信息";谢谢

string check=Request["u"];

表示获取前台页面提交的参数为u传过来的值。

以便进行后续处理。

补充举例:

表示这个url含有h和u两个参数
比如a.aspx?u=a&H=c
获取的结果就是a和c