I am creating a asp.net page but the ListView within it takes 4-5 seconds to load. So, I want add a update progress control to display a message while the page is loading. But this needs on page load instead of on postbacks. I have used jquery blocker, but
that only displays message after the page has fully loaded.
I think you can put your loading message markup on the page, then before the ListView markup place a code nugget with Response.Flush(). Then hide the loading message after the page loads.
My suggestion did not require a click event. I used this method on a web site I did a long time ago and have not needed anything like it since but it does still work. I originally got the idea from this blog:
shahed.kazi
All-Star
17953 Points
3635 Posts
Update Progress on Page Load - not postback
Nov 27, 2012 04:57 AM|LINK
I am creating a asp.net page but the ListView within it takes 4-5 seconds to load. So, I want add a update progress control to display a message while the page is loading. But this needs on page load instead of on postbacks. I have used jquery blocker, but that only displays message after the page has fully loaded.
.NET World |Captcha Control
DreamBig
Participant
1339 Points
622 Posts
Re: Update Progress on Page Load - not postback
Nov 27, 2012 11:55 AM|LINK
solved here - http://forums.asp.net/p/1369274/2855816.aspx
http://www.codeproject.com/Articles/33613/Loading-Message-when-Page-Loads
Hope it helps..
My Blog
RichardY
Star
8376 Points
1573 Posts
Re: Update Progress on Page Load - not postback
Nov 27, 2012 12:08 PM|LINK
I think you can put your loading message markup on the page, then before the ListView markup place a code nugget with Response.Flush(). Then hide the loading message after the page loads.
chetan.sarod...
All-Star
65729 Points
11133 Posts
Re: Update Progress on Page Load - not postback
Nov 28, 2012 02:13 AM|LINK
You can look into JQuery UI Blocker here:
http://malsup.com/jquery/block/#demos
Similar threads -
http://forums.asp.net/t/1296071.aspx/1
http://www.codeproject.com/KB/aspnet/LoadingMsgWhilePageLoads.aspx
http://forums.asp.net/t/1126943.aspx
Senior Software Engineer,
Approva Systems Pvt Ltd, Pune, India.
shahed.kazi
All-Star
17953 Points
3635 Posts
Re: Update Progress on Page Load - not postback
Nov 28, 2012 09:58 PM|LINK
Most of the solutions are bypassing the problem by using a button click rather than on Page_Load event. Is it possible to do otherwise.
.NET World |Captcha Control
RichardY
Star
8376 Points
1573 Posts
Re: Update Progress on Page Load - not postback
Nov 30, 2012 11:52 AM|LINK
My suggestion did not require a click event. I used this method on a web site I did a long time ago and have not needed anything like it since but it does still work. I originally got the idea from this blog:
http://geekswithblogs.net/dotNETvinz/archive/2009/02/17/displaying-wait-message-on-page-load-in-asp.net.aspx