Skip to content

How to expire a pop window in asp.net

Asked Jan 20, 2016, 8:41 PM EST1 answer
Share
LinkedInX
I have two buttons in my page login and register,
If i click login am showing a login popup(user id and password) ,
if this pop up stable for 5 minutes , i want redirect that to expired.aspx page, how to do this
 
this is my code
 
width="100%">
align="right" alt="Close" />
width="100%">
LOGIN
 
Username:
<%----%>
ErrorMessage="User ID Required" ValidationGroup="a" CssClass="content3" ForeColor="#FF3300">
Password:
ErrorMessage="Password Required" ValidationGroup="a" CssClass="content3" ForeColor="#FF3300">
Height="40px" Width="100px" />
Forgot password?&nbsp
| &nbspRegister
Code
                                            style="font-size: small; color: #0000FF; font-family: verdana;">Login|                                                href="Registration.aspx" style="font-family: verdana; font-size: small; color: #0000FF;">Register
 
 
Javascript

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    use 5 min session and globle.asax file for redirect the expired.aspx page
     ex.
    C#
    void Session_End(object sender, EventArgs e)
        {
    
            if (Session["username"] != null)
            {
                Response.Redirect("Home.aspx", false);
            }
            else
            {
                Response.Redirect("Login.aspx", false);
            }
    
        }
     
    0