|
Say I have many control buttons in the ASP.NET developped web page, each upon being clicked will do some operatoin which may take some time, when the button is clicked, a progress bar(in my case, I used an animated gif) will be shown while keeping the web page being freezed (by word "freeze", I mean the web page will be made inactive when the progress bar is being displayed in the center of the window, the user can still see the web page, however, he cannot click on any controls in the web page, the web page will be active again until the operation completes and the progress bar disappear.)
Can anybody suggest how I may do the web page freezing?
thanks a lot!!!
|
|
|
Nope. The controls are rendered to the browser, and the user can interact with them.
What you can do is put all of your controls within a div. Put your "please wait" stuff in a second div.
When the form is submitted, toggle the form div's CSS visibility to "hidden", and the please wait div to "visible".
Do this with JavaScript, of course, either by coding the forms "onsubmit" handler, or by adding an "onclick" attribute to the particular button.
|
|
|
|
|
|
|
|
|
|