Click here to Skip to main content
15,886,530 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am Using MVC 3.0 .
i want to disable whole page in case of button click or during processing so that user can't click again while page is in progress.

Thanks
Posted
Comments
bbirajdar 26-Mar-13 6:36am    
Okay..
Sandeep Mewara 26-Mar-13 13:54pm    
And... the issue is?

1 solution

Create half-transparent div with gif loader on it. Show and hide it when you need.

HTML
<div id="divLoader" style="text-align: center;position: fixed;width: 100%;background: black;left: 0px;top: 0px;height: 100%;opacity: 0.5;"><img src="loader.gif" />


Hide it
$('#divLoader').hide();

Show it
$('#divLoader').show();




Gif loader generator
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900