关于FormsAuthentication.RedirectFromLoginPage的问题 急~~~ FormsAuthentication.RedirectFromLoginPage(TextBox1.Text,false);为什么没有在本地生成cookies 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 FormsAuthentication.RedirectFromLoginPage(TextBox1.Text,true);就会生成这是什么原因呀 FormsAuthenticationTicket ft=new FormsAuthenticationTicket(TextBox1.Text,true,1); string st=FormsAuthentication.Encrypt(ft); Response.Cookies.Add(new HttpCookie(FormsAuthentication.FormsCookieName,st)); Response.Redirect(FormsAuthentication.GetRedirectUrl(TextBox1.Text,true));我这样写为什么还是没有的 C# public static void RedirectFromLoginPage ( string userName, bool createPersistentCookie) 参数userName经过身份验证的用户名。 createPersistentCookie若要创建持久 Cookie(跨浏览器会话保存的 Cookie),则为 true;否则为 false。详情请参照MSDN Discuz!nt3.5的二次开发 100分求教一个关于Gridview的问题 打开一个已有的项目,出现了一个错误。 问一个比较不好解决的问题! 急寻测试工具 help!! DataReader.Item("**")问题 请教一个asp.NET论坛上传自定义头像问题 高手看过来,在线等,解决就给分 请问如何在Page_Load中得到当前引起回发的是哪个控件? 在字段里加换行符,如何在gridview中控制换行 [求助]在asp.nep页面中如何将一个listbox中的内容导出到excel并立即打开?
就会生成这是什么原因呀
string st=FormsAuthentication.Encrypt(ft);
Response.Cookies.Add(new HttpCookie(FormsAuthentication.FormsCookieName,st));
Response.Redirect(FormsAuthentication.GetRedirectUrl(TextBox1.Text,true));
我这样写为什么还是没有的
public static void RedirectFromLoginPage (
string userName,
bool createPersistentCookie
) 参数
userName
经过身份验证的用户名。 createPersistentCookie
若要创建持久 Cookie(跨浏览器会话保存的 Cookie),则为 true;否则为 false。
详情请参照MSDN