问题描述
我在登陆页面的后台(cs)代码中用session保留了数据库表中一个字段的值(teacher表中的字段tea_name),现在我想在top.html中用label控件显示这个session的值,如何做呢?
解决方案
解决方案二:
cs:session["tea_name"]=dr[tea_name].toString();top.htmlLabel.Text=session("tea_name");//
解决方案三:
top.html换成top.aspx然后在page_load事件中Label.Text=session("tea_name");
解决方案四:
引用2楼yb1124的回复:
top.html换成top.aspx然后在page_load事件中Label.Text=session("tea_name");
你怎么换头像了
解决方案五:
呵呵,漂亮吗
解决方案六:
Label.Text=Session["tea_name"].ToString();
时间: 2024-09-06 12:37:23