Click here to Skip to main content
15,888,008 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have to upload a file to server using file upload control in asp.net ,but this process takes time so i have to block ui while this processing is going on .Please suggest me how to do it ?
Posted
Comments
Sridhar Patnayak 30-Dec-11 0:52am    
In web application online user can go for any link with out completion of process. I think no need to block UI
prejval2006 30-Dec-11 0:54am    
but my requirement is to block ui

you can achieve this using the jquery "blockui" plugin.

For more information refer
http://jquery.malsup.com/block/#overview[^]

Thanks
 
Share this answer
 
v2
You can achieve this by using only jQuery and a little bit of CSS.

Here's a working example
 
Share this answer
 
I recommend to use jQuery blockui[^].
 
Share this answer
 
You can place a div above your UI to block clicking while the upload is in progress. Once the upload event ends, remove the div. There are various examples on net on how to put a div, look here:
ASP.NET block UI div[^]

One of the simplest implementation would be to use jQuery BlockUI plugin[^].
 
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