日期:2014-05-18  浏览次数:20553 次

response.redirect 传参数
response.redirect( "hhh.aspx?auth= '+mythear+ ' ");
这样可以传吗?

------解决方案--------------------
传这个有意义么?
------解决方案--------------------
发送
string mythear = "abc ";
Response.Redirect( "hhh.aspx?auth= " + mythear);

接受
string xx = Request.QueryString[ "auth "];
------解决方案--------------------
确定+肯定的告诉你可以

如楼上 高歌 所示

:D



------解决方案--------------------
补充下如果传多参数的话
发送
string mythear = "abc ";
string mythear1 = "abc1 ";
Response.Redirect( "hhh.aspx?auth= " + mythear + "&auth1= " + mythear1);


接受
string xx = Request.QueryString[ "auth "];
string xx = Request.QueryString[ "auth1 "];
------解决方案--------------------
是呀,可以呀
------解决方案--------------------

咋就没机会给我了呢?呵呵!