Author: Apples | Posted on: 5/26/2009 7:40:48 AM | Views : 251

I have a page where a user can run a search, and the results are shown on a grid.  The grid is inside an UpdatePanel so that the page doesn't have to reload every time a search is run.  The only problem is that sometimes the search takes a long time, and it seems like nothing is happening.  I'd like to show a "Loading" image when the search is first run until the search is finished, and then I would show the grid again.
I hoped to accomplish this by simply showing/hiding a div containing the image, and showing/hiding a div containing my grid.  But this doesn't seem to be working for me.  Here's my code:
protected void Search(object sender, EventArgs e) { //testing javascript functionality; show image, hide grid here Page.RegisterStartupScript("script1", "<s ...

Go to the complete details ...