Click here to Skip to main content
13,005,736 members (66,311 online)
Rate this:
Please Sign up or sign in to vote.
See more:
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
Posted 24-Sep-12 2:25am
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

You can set the targetcontrolid to a dummy hidden button.  Then you can use YourModalId.Show() in page_load to show it.
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

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 Should work.
challengeTo 24-Sep-12 8:49am
any sample code
gladiatron 24-Sep-12 8:53am
if (Session["WhateverYourSessionNameIs"] == null)

you can try putting piece of code in page_load event handler. Let me know if it works.
challengeTo 25-Sep-12 0:14am
ok sir i will try
Rate this: bad
Please Sign up or sign in to vote.

Solution 3

1. Add
<meta http-equiv="refresh" content="60"> </meta>
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.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170627.1 | Last Updated 24 Sep 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100