Last post Jun 08, 2017 09:15 AM by Eric Du
Jun 07, 2017 03:31 PM|muhammadazeemazam|LINK
1) I need to pop up a message with only one Button (Ok) after 5 Minutes if there is no activity on Page.
2) if the user clicks ok, then he will not be redirected to another page else he will be routed to Default Page.
3) Limitations --> Can't use Third Part tool/ DLL, Can't use J-Query.
Jun 07, 2017 06:33 PM|Khanna Gaurav|LINK
Jun 08, 2017 09:15 AM|Eric Du|LINK
According to your description, as far as I know,
I need to pop up a message with only one Button (Ok) after 5 Minutes if there is no activity on Page.
About this issue, as far as I know, you could use session to check page if has expired. if has expired, show popup.
if the user clicks ok, then he will not be redirected to another page else he will be routed to Default Page.
About this issue, you could set the redirect page in button click event.
Limitations --> Can't use Third Part tool/ DLL, Can't use J-Query.
In the following sample, please modify it through your needs, you don't need use JS in your needs.
For more details, please refer to the following sample:
Automatically redirect User after Session Timeout in ASP.Net:
Disclaimer: This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites;
therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure
that you completely understand the risk before retrieving any software from the Internet.