Solved

Disable Exit Button on the IE to prevent user exit the page when the page still doing database processing

Posted on 2006-11-16
7
437 Views
Last Modified: 2008-02-01
Hi All,

I have a Web-base application - ASP.NET with a Microsoft Access 97 database.
I need to update multiple table when user click on the submit button.
Can i prevent user to close the Internet Explorer while my webform still doing the processing?
Sometime user might close the page before all the table has been updated.
This caused some incomplete update on the database.

Anyone have any solution on the above issue...please help.

Thanks
0
Comment
Question by:ian_khoo_sc
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
7 Comments
 
LVL 9

Expert Comment

by:daniel_balla
ID: 17954631
Hi ian_khoo_sc,
You don't have to worry about that. The processing takes part on the server, in your ASP.NET application and it is not affected by the user closing down the browser. However you might want to take a different approach and leave the processing in the background (on a different thread or process) and notify the user that there is a slow process on the server and he should wait (or do something else).

Cheers!
Dani
0
 
LVL 5

Expert Comment

by:kumar_jac
ID: 17955119

Hi,
        You can call the long running page on the IFram so  in main page you can show the status .

regards,

Krishna kumar.M

0
 
LVL 9

Expert Comment

by:daniel_balla
ID: 17955255
or you can use a proper Ajax framework to display a sort of a progress bar (or update progress panel)
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:ian_khoo_sc
ID: 17985871
As i mention i need to update multiple table and most of the code was in the .vb file. If the user close the page, the process will stop there and the rest of the table will not be updated as i noticed.

I did prompt the user with a alert msg once all the table has been updated. But sometime users just forgot about it and close the form before the process has end.

This cause some incomplete data in our MS Access database. Need to solve it urgently....anyway can provide techinical advice...please help~~~

Thanks
0
 
LVL 9

Expert Comment

by:daniel_balla
ID: 17985941
Where is that .vb file running? is it clientside? do you import it in HTML?
0
 

Author Comment

by:ian_khoo_sc
ID: 17985995
When we deploy the application to server, we just need to upload all the .aspx files, globa.asax, css files, and web.config...and also the bin folder. This is a ASP.Net web application.
0
 
LVL 9

Accepted Solution

by:
daniel_balla earned 125 total points
ID: 17986064
My point exactly. so what you do in your VB file is compiled and executed on the server! so it doesn't make any difference if the user closes the browser or not. then the user submits the request it is passed by IIS to the ASP.NET module and then it does the processing. Wheater the user keeps the browser open or not doesn't make any difference to the ASp.NET process on the server. it would only make a difference to the user if he sees the result or not.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question