我已经在session中存了值:
b页面进入c页面时,动态将c中的链接改为传值型的:b.aspx?iCustomerId=“session的值”
因为在b页面:有
String Temp = Request["iCustomerId"];
{
......数据库操作.....
}要求:要点击站点地图链接传递;不是点击按钮或链接;
b页面进入c页面时,动态将c中的链接改为传值型的:b.aspx?iCustomerId=“session的值”
因为在b页面:有
String Temp = Request["iCustomerId"];
{
......数据库操作.....
}要求:要点击站点地图链接传递;不是点击按钮或链接;
private void Page_Load(object sender, System.EventArgs e)
{
if(!IsPostBack)
{
if(Session["**"]!=null)
Response.Redirect("b.aspx?iCustomerId="+Session["**"].ToString());
}
...
}
楼上的在一般的页面 按钮或链接按钮的方法应该能行!
要点击站点地图链接传递;
那么建议使用ajax
b动态的获取c的值
function Select2()
{
var sessionValue = '<%= (string)Session["CheckCode"]%>';
xmlHttp.open("GET",url,true);
xmlHttp.onreadystatechange=Update2;//这里是你处理的结果
xmlHttp.send(null);
}