日期:2014-05-17 浏览次数:20438 次
/* 第一段,A B C都要经过QueryString,总的要3次的QueryString */
private string A
{
//Response.Write(“要QS了”);
string a = Request.QueryString[urlname];
if (string.IsNullOrEmpty(a))return "";
return a;
}
private string B
{
return A+"bvalue";
}
private string C
{
return B+"cvalue";
}
private void Page_Load(object sender, EventArgs e)
{
Response.Write(C);
}
/* 第2段,A经过QueryString,BC就都不用QueryString */
private string A =""
private string B =""
private string C =""
private void Page_Load(object sender, EventArgs e)
{
string a = Request.QueryString[urlname];
if (!string.IsNullOrEmpty(a))
A=a;
B = A + "bvalue";
C = B + "cvalue";
Response.Write(C);//或者前台调用ABC
}