2014年7月13日 星期日

[RESOLVED] Display progress bar in web page before data is loaded in gridview


i my asp.net+vb+access database web i have a gridview (gridview1) data is binded through accessdatasource and it works fine. now i want to add an progressbar in that web page


the code i am using is VB.


i had already browsed lot of tutorial of asp.net which displays data after a while (which is programitically they had delayed the time of load eg   System.Threading.Thread.Sleep(3000);)


i dont want to delay any thing. only show the progressbar in centre of the page and disappear when the data is displayed.



Hi Baiju EP,


There are lots of exmaples through javascrip and jquery. Following are the links with the examples and there codes.


http://jqueryui.com/progressbar/#indeterminate


http://s3.envato.com/files/2526201/index.html


http://oaa-accessibility.org/examplep/progressbar1/


http://www.javascriptkit.com/script/script2/progressbar.shtml


or else:


First create Div Element:



#dvLoading
{
background:#000 url(images/loader.gif) no-repeat center center;
height: 100px;
width: 100px;
position: fixed;
z-index: 1000;
left: 50%;
top: 50%;
margin: -25px 0 0 -25px;
}

script>
$(window).load(function(){
$('#dvLoading').fadeOut(2000);
});

or else:


Display loading image while PostBack calls in ASP.Net


http://www.aspsnippets.com/Articles/Display-loading-image-while-PostBack-calls-in-ASPNet.aspx


http://forums.asp.net/t/1927023.aspx?J+Query+Progress+Bar


http://forums.asp.net/t/1930867.aspx?Progress+bar+is+not+working+please+help+me+


Hope this helps.


Thanks,


Jatin











沒有留言:

張貼留言