js通过隐藏iframe修改session值

js:
function selects(id, ss) { window.frames["UpSession"].window.location.href = "../UpSession.aspx?ss=" + ss; } Html:
<iframe src="../UpSession.aspx" name="UpSession" id="UpSession" width="0" height="0" scrolling="no" frameborder="0"></iframe> .cs: //修改leixing的session值 if (!string.IsNullOrEmpty(Request.QueryString["ss"])) { Session["Leixing"] = Request.QueryString["ss"]; } else { Session["Leixing"] = Session["Leixing"]; }

 

posted @ 2013-12-28 15:46  Mr.Thanks  阅读(269)  评论(0编辑  收藏  举报