我正在创建一个 ASP.NET/C# 应用程序。我希望在选择&时出现进度条/加载。&是。_RadioButtonList
DropDownList
RadioButtonList
DropDownList
AutoPostBack
我需要为&显示进度条/加载。RadioButtonList
DropDownList
谢谢你。
function ShowProgress() {
setTimeout(function () {
var modal = $('<div />');
modal.addClass("modal");
$('body').append(modal);
var loading = $(".loading");
loading.show();
var top = Math.max($(window).height() / 2 - loading[0].offsetHeight / 2, 0);
var left = Math.max($(window).width() / 2 - loading[0].offsetWidth / 2, 0);
loading.css({ top: top, left: left });
}, 200);
}
$('form').live("submit", function () {
ShowProgress();
});