If a page connects to server on a button click event or page load event etc (any event which happens in the server), the user should not be allowed to work/clicketc on other controls in the page.
I need something like "Loading" etc till it completes the server operation.
For eg, if a page loads, till the page load event completes, I should be getting a image "Loading" and should not be allowed to operate on other controls (Entire page should be disabled).
Guess it can be done on AJAX, not sure. If can! How?
I need it on all server events, not only on Button click. Need some thing like a image which says Loading and every thing else shud be disabled or somethig like that!
ashiqf
Participant
868 Points
397 Posts
Server Event
Apr 27, 2012 02:21 PM|LINK
Hi All,
If a page connects to server on a button click event or page load event etc (any event which happens in the server), the user should not be allowed to work/clicketc on other controls in the page.
I need something like "Loading" etc till it completes the server operation.
For eg, if a page loads, till the page load event completes, I should be getting a image "Loading" and should not be allowed to operate on other controls (Entire page should be disabled).
Guess it can be done on AJAX, not sure. If can! How?
Please help
Ashiq
AidyF
Star
9204 Points
1570 Posts
Re: Server Event
Apr 27, 2012 02:59 PM|LINK
<body> <script type="text/javascript"> function showWait() { document.getElementById('divWait').innerHTML = "Please wait..."; } </script> <form id="form1" runat="server"> <div id="divWait"> </div> <asp:Button ID="ButtonTest" runat="server" Text="Click" OnClientClick="showWait();" /> </form> </body>ashiqf
Participant
868 Points
397 Posts
Re: Server Event
Apr 30, 2012 07:35 AM|LINK
I need it on all server events, not only on Button click. Need some thing like a image which says Loading and every thing else shud be disabled or somethig like that!
Ashiq
ramiramilu
All-Star
95463 Points
14106 Posts
Re: Server Event
Apr 30, 2012 08:34 AM|LINK
use AJAX UpdateProgress - http://www.wadewegner.com/2008/01/using-the-updateprogress-to-lock-down-controls-in-the-browser/
Thanks,
JumpStart
ashiqf
Participant
868 Points
397 Posts
Re: Server Event
Apr 30, 2012 11:35 AM|LINK
It worked fine. Is there a way to have this done on page load event?
Ashiq