会话超时后如何显示ajax弹出扩展器 [英] how to show ajax pop up extender after session Time out

查看:78
本文介绍了会话超时后如何显示ajax弹出扩展器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想显示会话超时后的Ajax模型弹出扩展器以及模型弹出窗口上的登录凭据,这意味着用户名,密码和登录按钮在会话超时后再次登录...

请提供解决方案

在此先感谢

hi i wants to show the Ajax model popup extender after session time out along with login credential on model pop up means Username,Password and Login button to once again login after session time out...

please provide a solution

thanks in advance

推荐答案

You can set the targetcontrolid to a dummy hidden button.  Then you can use YourModalId.Show() in page_load to show it.


除了连续轮询以查看Session变量是否有效之外,还有什么?您可以尝试做的是让会话在过期时过期,并在超时后收到客户端请求时先检查会话的有效性,如果会话无效,则执行modalpopup.show().应该可以.
Other than continously polling to see if the Session variable is valid, what you can try doing is let the session expire when it expires and just check for the validity of session first when the client request is recieved after the timeout, if the session is invalid, just do a modalpopup.show(). Should work.


1.添加
<meta http-equiv="refresh" content="60"> </meta>

标记为页面标题,并根据您的会话超时设置刷新时间+一两秒钟(Google如何以编程方式执行此操作,而不是对"Content = 60"进行硬编码)


2.在页面加载中检查会话是否可用,如果不是ModalPopup.Show()
会话超时后页面将刷新,您的ModalPopup将出现.

tag to page header and set refresh time as per your session time out + one or two seconds more (Google how to do this programatically instead of hardcoding of "Content=60")


2.In the page load check the Session avalible or not, if not ModalPopup.Show()
Page will get refresh after session time out and your ModalPopup will appear.


这篇关于会话超时后如何显示ajax弹出扩展器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆