Link to home
Start Free TrialLog in
Avatar of Netlink2
Netlink2

asked on

Please wait message while dataadapter is thinking

Hi, I have a query which takes some time to process, I would like a "please wait" message (preferably an image) whilst the data adapter is thinking. I don't know how to go about this.
Avatar of KPMT-Technician
KPMT-Technician
Flag of United States of America image

How is the user starting the query?
Image Button, Link Button, etc.....

There are about 100 and 1 ways to accomplish this but not all of them are going to fit your situation.  A little bit more information about the html that the user is already seeing will help.

Here is a basic approach: http://forums.digitalpoint.com/showthread.php?t=16341

Robert Fidler
Springfield, Missouri
Avatar of Netlink2
Netlink2

ASKER

Robert, I'm glad you asked :). This is a bit of a tricky one. The Search button is in vb code-behind. The processing is done via an objectdatasource in aspx. I know how to make an image appear and disappear using Javascript, but not via vb and I don't know when the processing is finished, nor how to trap any events after it's completed.
Let me get up to speed on the whole picture here.  You have a search button on a page that is performing a process on the server.  Your wanting to show a Message (Please Wait) while the process is taking place.  Then when the process is finished populate the page with the results of the process.

Correct?

Questions:
1.  What version of .Net?
2.  Are you using any kind of web services?
3.  Is the application using any AJAX?
4.  Are you familiar with AJAX?
5.  Do you want the user to be able to interact with the web page will the process is taking place?
Thanks again the answers are : 2005, No, Yes, Enough to get me by, no
The ObjectDataSource is connected to a gridview. I guess that a gridview changed event could be trapped. So I could make the image visible via vb and then make it invisible via aspx. I still don't know how to manage the aspx side of things though.
use javascript to make the image visible, then the post-back.  Then the last thing on the server-side make the image invisible and the grid visible.



Thanks KPMT-Technician, but I have no idea how to get the Javascript started, how would the javascript know the event has begun ?.
I'll work out a little demo for you.  It will take me about a day.
I really appreciate that KPMT. Believe it or not, a persons job rests on just this little feature, the boss won't post the site live until it's done. Every day counts. I've really been working hard on this one feature with no answers.
Do you mind letting me know what the update does and when its finished what happens?
ASKER CERTIFIED SOLUTION
Avatar of cmhunty
cmhunty

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
KPMT, I really appreciate your help. For some unknown reason the code you created still didn't work for me, although it definately worked in the sample you provided.