废话不多说,以下给出两个例子,请各位看官借鉴批评
The First One:
传递方: string aa="ddddddddddddddddddddddddddddd";
Response.Redirect("search.aspx?t="+aa);
接收方:
Label1.Text = Request["t"];
The other:
Response.Write("<script>window.location.replace('default.asp?clos=1"+"&HX33_WishID=" + GridView1.SelectedRow.Cells[1].Text.ToString()+"')</script>");
总结:1.对于确切字符(非变量或某控件值)直接用双引号引起来即可,对于变量名或者指向控件值的字符串,直接+起来既可.
2.多个参数并列传递(如例2)需要在确切字符前加上&符.