开发者

Redirected Page has Some Problem

开发者 https://www.devze.com 2022-12-20 04:51 出处:网络
i have one asp.net project. In this i used session for logged user. If i open a popup window and waited upto session expire. Then i got one error page that describing about the session expiration and

i have one asp.net project. In this i used session for logged user. If i open a popup window and waited upto session expire. Then i got one error page that describing about the session expiration and redirect to the login page. but the login page open in the same popup window. My requirement is to open the login page in Main window. What changes that i will make for that?

if (Session["IsSessionValid"] != null)
{
   //Some lines of codes
}
e开发者_如何学Clse
{
  Response.Redirect("SessionError.aspx");
 }


As far as i know i think we can use javascript to load the parent window with a new url

Write a function for the popup window.onclose event

In that function, you can refer the parent window from which you have opened a popup,

window.opener.location=url //replace the url of ur wish
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号