FineUI 官方论坛

标题: 关于首页的退出跳转问题。 [打印本页]

作者: Spring    时间: 2012-3-26 09:43
标题: 关于首页的退出跳转问题。
        protected void btnExit_Click(object sender, EventArgs e)
        {
            //ExtAspNet.PageContext.RegisterStartupScript("parent.window.location.href=\"login.aspx\";");
            FormsAuthentication.SignOut();
            FormsAuthentication.RedirectToLoginPage();  
        }
上面是我的首页跳转,如果首页未打开子页且没有#时可以跳转,如果首页打开子页:
http://192.168.90.93/Main.aspx#/AppFrame/menu.aspx

http://192.168.90.93/Main.aspx#
则跳转失败
上面两种跳转方式都是如此。
能不能打开子页时不在首页后+#子页连接?

作者: Spring    时间: 2012-3-26 09:47
另:当首页打开子页时用
Windows1.Hidden = true;
打开弹出子窗口也不成功,没有提示。
感觉与上面问题是同一性质!
作者: Landroid    时间: 2012-3-26 15:17

FormsAuthentication.RedirectToLoginPage();  
改用Response.Redirect("login.aspx");
作者: Spring    时间: 2012-3-26 15:33
Landroid 发表于 2012-3-26 15:17
FormsAuthentication.RedirectToLoginPage();  
改用Response.Redirect("login.aspx");

仍然不行!
作者: 水若寒冰    时间: 2012-3-27 10:28
把web.config中 <authentication mode="Windows"/>的mode设置为Form
作者: 幻之达    时间: 2012-3-27 14:10
支持5楼
作者: 沧海为水    时间: 2012-3-27 21:57
我也遇见这个问题了,唉,怎么解决啊
作者: 沧海为水    时间: 2012-3-27 22:30
火狐浏览器,好像就没问题
作者: Spring    时间: 2012-3-28 15:19
水若寒冰 发表于 2012-3-27 10:28
把web.config中 的mode设置为Form

仍然不行呀!
作者: 『↑』_徐枫    时间: 2012-3-28 21:46
本帖最后由 『↑』_徐枫 于 2012-3-28 21:50 编辑

我原来做extnet项目时遇到这个问题了的,后来研究发现在button的after属性中自己写前台javascript代码进行跳转就好了,不知道在这里面是不是一样的,你可以试试


注:extnet和extaspnet是两个不同的开源项目,但是都是基于extjs2.0的,extnet里面提供的控件应用比extaspnet的多不少,但是是全英文的,参考资料少,研究起来比较费劲点。

作者: Landroid    时间: 2012-3-29 08:47
求调试结果和出错截图
作者: 幻之达    时间: 2012-3-29 11:00
<authentication mode="Forms">
      <forms name="forums" path="/" loginUrl="login.aspx" protection="All">
      </forms>
    </authentication>
试下
作者: 千里草    时间: 2012-3-29 11:56
注释掉,有差 有关 修改地址栏的 语句
作者: shanzhongfei    时间: 2012-3-31 15:06
学习了!




欢迎光临 FineUI 官方论坛 (https://www.fineui.com/BBS/) Powered by Discuz! X3.4