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"]; }