if (CookiesHelper.GetCookieValue("UserCroupID") == null ||CookiesHelper.GetCookieValue("UserCroupID") == "")
{
Response.Write("<script>alert('请您先登陆');</script>"); Server.Transfer("KMSLogin.aspx", true);
}各位大哥 我在KMSPWD 页面 做了一个判断 如果 他没有登录 就让他先登录
if (!IsPostBack)
{
if (CookiesHelper.GetCookieValue("usercheck")=="1")
this.CheckBoxzhu.Checked = true;
else
this.CheckBoxzhu.Checked = false;
this.TxtName.Text = CookiesHelper.GetCookieValue("usercode"); this.TxtPwd.Attributes["value"] = CookiesHelper.GetCookieValue("userpassword");
}
这是我 登录界面的代码 为什么下次我登录的时候 Cookies保留了
跳转页面的时候 CookiesHelper.SetCookie("UserCroupID", dt.Rows[0]["UserGroup_ID"].ToString());
我把Cookies 传过去了 为什么 那边页面 没有获取到了求解为什么 很急急
{
Response.Write("<script>alert('请您先登陆');</script>"); Server.Transfer("KMSLogin.aspx", true);
}各位大哥 我在KMSPWD 页面 做了一个判断 如果 他没有登录 就让他先登录
if (!IsPostBack)
{
if (CookiesHelper.GetCookieValue("usercheck")=="1")
this.CheckBoxzhu.Checked = true;
else
this.CheckBoxzhu.Checked = false;
this.TxtName.Text = CookiesHelper.GetCookieValue("usercode"); this.TxtPwd.Attributes["value"] = CookiesHelper.GetCookieValue("userpassword");
}
这是我 登录界面的代码 为什么下次我登录的时候 Cookies保留了
跳转页面的时候 CookiesHelper.SetCookie("UserCroupID", dt.Rows[0]["UserGroup_ID"].ToString());
我把Cookies 传过去了 为什么 那边页面 没有获取到了求解为什么 很急急
解决方案 »
- asp.net提供的模板页实际应用
- 请教一个过程输出参数的问题?
- 关于用数组保存数据的小问题,请大家说一下自己的看法!
- 关于BLOG日历的小问题
- Web 自定义控件的问题
- 如何让System.web.ui.webcontrol.image接受stream流对象
- 参考网上的资料写了个POWERGRID,欢迎大家试用并修改
- 页面用了ajax后,为什么response.write就弹不出对话框
- 急件!关于asp.net与sql server7英文版的问题。在线等待中......
- asp.net网页,点住鼠标左键拖动,页面失去响应!
- lastIndexOf("\")为什么老提示"未中止的字符串常量"
- 如何获取带参数的超链接的参数?
大哥 有点不行 能不能在想帮小弟想点别的办法 谢谢了