日期:2014-05-17 浏览次数:20444 次
<div id="nologin"> 111111111 </div> <div id="islogin"> 222222222 </div>
protected void Page_Load(object sender, EventArgs e) { if (Session["UserName"]==null) { nologin.Attributes["style"] = "display:block"; islogin.Attributes["style"] = "display:none"; } else { nologin.Attributes["style"] = "display:none"; islogin.Attributes["style"] = "display:block"; } }