Solved

Hide gridview on long postback

Posted on 2011-02-22
3
254 Views
Last Modified: 2012-05-11
I have large gridview that can be filtered when a user enters text in a search filter textbox.  I want to disable, gray out or hide the grid while the page is posting back (which can take a few seconds in my case).  

What's the slickest way to do this?  I'm guessing I need to fire some javascript on the filter button OnClientClick event, then turn it back on on the server side.  Is this correct?  A simple code example would be greatly appreciated.  thx -

justin
0
Comment
Question by:JT_SIRO
3 Comments
 
LVL 20

Assisted Solution

by:informaniac
informaniac earned 62 total points
ID: 34958261
Can u show a waiting image while the page gets reloaded?
0
 

Author Comment

by:JT_SIRO
ID: 34962790
I do that now, but it just sits over the grid and allows you to scroll and click on grid controls, which I can't have.
0
 
LVL 7

Accepted Solution

by:
dxdinh earned 63 total points
ID: 34966113



I would hook up jQuery framework
http://docs.jquery.com/Tutorials

and use the blockUI plugin
http://jquery.malsup.com/block/

in no time you will love jQuery .....
0

Featured Post

Technology Partners: 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

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

679 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