Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Dec 16, 2012 01:39 PM by ciupazMI
Member
140 Points
172 Posts
Dec 13, 2012 12:26 PM|LINK
Hello all, in my aspx page (.NET 3.5) I have a button that performs long time operation in my database. Something like:
protected void btnLoadData_Click(object sender, System.EventArgs e) {
ExecuteStep1();
ExecuteStep2();
ExecuteStep3();
}
In the meantime the user cannot do everything, and he must wait the entire task to be completed.
Is there a way to "freeze" the aspx page, or show a pop-up like "Loading in progress..."
to show that something is running?
Thanks in advance.
Luigi
Participant
1447 Points
322 Posts
Dec 13, 2012 12:31 PM|LINK
If you're using an update panel you can also use the update progress control
http://msdn.microsoft.com/en-us/library/bb386421(v=vs.100).aspx
Dec 13, 2012 12:43 PM|LINK
No, I'm not using any Update Panel, unfortunately.
All-Star
15163 Points
2953 Posts
Dec 14, 2012 11:07 AM|LINK
Use the following function:
http://www.dotnetvishal.com/2012/11/creating-time-delay-programmatically-c.html
Dec 14, 2012 12:00 PM|LINK
Hi Vishal, I have already an object that performs long time operations, and I just need something to show to the users that something in going on.
44342 Points
7194 Posts
MVP
Dec 16, 2012 10:32 AM|LINK
Hello,
ciupazMI and I just need something to show to the users that something in going on.
You can easily achieve this with AJAX Modalpopup. My blog post will help you to achieve this
http://ruchirac.blogspot.com/2012/09/use-ajax-modalpopup-to-block-ui-while.html
Please 'Mark as Answer' if this post helps you.
Contributor
6688 Points
1204 Posts
Dec 16, 2012 11:07 AM|LINK
i would recommend you to use jQuery for this task, have a look at following solutions:
http://stackoverflow.com/questions/1964839/jquery-please-wait-loading-animation
http://stackoverflow.com/questions/4015159/using-jquery-to-display-a-modal-please-wait-dialog-box-message
http://forums.asp.net/t/1620326.aspx/1
Dec 16, 2012 01:39 PM|LINK
Perfect, thank you all.
ciupazMI
Member
140 Points
172 Posts
Show wainting in long running button execution
Dec 13, 2012 12:26 PM|LINK
Hello all, in my aspx page (.NET 3.5) I have a button that performs long time operation in my database. Something like:
protected void btnLoadData_Click(object sender, System.EventArgs e) {
ExecuteStep1();
ExecuteStep2();
ExecuteStep3();
}
In the meantime the user cannot do everything, and he must wait the entire task to be completed.
Is there a way to "freeze" the aspx page, or show a pop-up like "Loading in progress..."
to show that something is running?
Thanks in advance.
Luigi
Dr. Acula
Participant
1447 Points
322 Posts
Re: Show wainting in long running button execution
Dec 13, 2012 12:31 PM|LINK
If you're using an update panel you can also use the update progress control
http://msdn.microsoft.com/en-us/library/bb386421(v=vs.100).aspx
ciupazMI
Member
140 Points
172 Posts
Re: Show wainting in long running button execution
Dec 13, 2012 12:43 PM|LINK
No, I'm not using any Update Panel, unfortunately.
Luigi
geniusvishal
All-Star
15163 Points
2953 Posts
Re: Show wainting in long running button execution
Dec 14, 2012 11:07 AM|LINK
Use the following function:
http://www.dotnetvishal.com/2012/11/creating-time-delay-programmatically-c.html
My Website
www.dotnetvishal.com
ciupazMI
Member
140 Points
172 Posts
Re: Show wainting in long running button execution
Dec 14, 2012 12:00 PM|LINK
Hi Vishal,
I have already an object that performs long time operations, and I just need something to show to the users that something in going on.
Luigi
Ruchira
All-Star
44342 Points
7194 Posts
MVP
Re: Show wainting in long running button execution
Dec 16, 2012 10:32 AM|LINK
Hello,
You can easily achieve this with AJAX Modalpopup. My blog post will help you to achieve this
http://ruchirac.blogspot.com/2012/09/use-ajax-modalpopup-to-block-ui-while.html
My Tech blog | My YouTube ChannelPlease 'Mark as Answer' if this post helps you.tjaank
Contributor
6688 Points
1204 Posts
Re: Show wainting in long running button execution
Dec 16, 2012 11:07 AM|LINK
i would recommend you to use jQuery for this task, have a look at following solutions:
http://stackoverflow.com/questions/1964839/jquery-please-wait-loading-animation
http://stackoverflow.com/questions/4015159/using-jquery-to-display-a-modal-please-wait-dialog-box-message
http://forums.asp.net/t/1620326.aspx/1
Please Mark as Answer if this post helps you!
ciupazMI
Member
140 Points
172 Posts
Re: Show wainting in long running button execution
Dec 16, 2012 01:39 PM|LINK
Perfect, thank you all.
Luigi