本文介绍了会话过期时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经应用于目录结构如下:

[IMG] http://i971.photobucket.com/albums/ae198/haocaocu/Errors/struct_application_zpsrr9ja26q.png [/ IMG]

页面iDOC.master我使用iframe

I have applied to the directory structure as follows:
[IMG]http://i971.photobucket.com/albums/ae198/haocaocu/Errors/struct_application_zpsrr9ja26q.png[/IMG]
Page iDOC.master I use iframe

<iframe id="ifrmContent" frameborder="0" name="ifrmContent" width="100%" src="Template/Default.aspx"
                                    scrolling="auto"></iframe>
                                <script language="javascript" type="text/javascript">
                                    var frame = document.getElementById('ifrmContent');
                                    frame.height = screen.height - 130;
                                </script>



当我访问某个页面时,我检查的每个会话如下:


When I visit a page but every session I checked as follows:

if (Session["UserName"] == null)
        {
            Response.Redirect("~/Login.aspx");
        }
        else 



但如图所示:

[IMG] http://i971.photobucket。 com / albums / ae198 / haocaocu / Errors / session_expire_zpsw5652yoy.png [/ IMG]

如果我从这里登录,它会出现:

[IMG] http:// i971.photobucket.com/albums/ae198/haocaocu/Errors/double_menu_zpswlgji2cw.png [/ IMG]

谁知道如何抛出login.aspx帮助我。谢谢


but it appears as shown:
[IMG]http://i971.photobucket.com/albums/ae198/haocaocu/Errors/session_expire_zpsw5652yoy.png[/IMG]
if I log in from this, it appears:
[IMG]http://i971.photobucket.com/albums/ae198/haocaocu/Errors/double_menu_zpswlgji2cw.png[/IMG]
Who knows how to get dished out the "login.aspx" help me with. Thank you

推荐答案


这篇关于会话过期时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-31 21:47