[英]Loading animation with webform c#
I have a huge webform application with asp.net c #. 我的ASP.NET C#有一个庞大的Webform应用程序。 I would like to put a nice loading animation during loads.
我想在加载过程中放置一个不错的加载动画。 I tried with Jquery and "BlockUI" with a setTimeout and I added a "loader" class on submit buttons.
我尝试使用带有setTimeout的Jquery和“ BlockUI”,并在提交按钮上添加了“加载程序”类。
$('.loader').click(function () {
$.blockUI({
css: {
backgroundColor: '#3e5b74',
}
});
setTimeout($.unblockUI, 60000);
});
But it's not reliable. 但这并不可靠。 I have a lot of pages which contain buttons.
我有很多页面包含按钮。 With a gif, javascript works one time in two and if I click a second time in a button, the animation goes on even if page is loaded.
使用gif,javascript可以一两次工作,如果我第二次单击按钮,即使加载了页面,动画仍会继续。 I search a solution with only asp.net and C#, not js or jquery.
我仅使用asp.net和C#而不是js或jquery搜索解决方案。 And I would like that affects the entire application not just one or two buttons.
我希望这不仅影响一个或两个按钮,而且会影响整个应用程序。
In fact I would like exactly the behaviour of the little wheel in the tab. 实际上,我确实希望选项卡中小滚轮的行为。 It's not possible to copy this event?
无法复制此事件? :p
:p
Thank you in advance 先感谢您
好的,所以没有解决方案:/奇怪的是,C#中没有简单有效的解决方案来建议页面之间的回发加载,即使我的鼠标光标也是如此。
I was stupid. 我真蠢啊。 Indeed even if it's more complicated, using an overlayer with ajax (updatePanel/progressPanel) is the best way to do this.
确实,即使更复杂,使用带有ajax的覆盖层(updatePanel / progressPanel)也是实现此目的的最佳方法。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.