ASP.NET 显示单选按钮列表和下拉列表的进度条/加载

ASP.NET Display the progress bar/loading for radiobuttonlist & dropdownlist

本文关键字:加载 下拉列表 显示 NET 单选按钮 列表 ASP      更新时间:2023-09-26

我正在创建一个 ASP.NET/C#应用程序。我希望在选择RadioButtonListDropDownList时出现进度条/加载RadioButtonListDropDownListAutoPostBack

我需要显示RadioButtonListDropDownList的进度条/加载

谢谢。

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();
    });

您可以添加一些 JavaScript 和 Html 以在每个回发时显示加载器。请在下面找到帮助网址:

在 ASP.Net 回发调用时显示加载图像

在回发期间锁定屏幕

如何在每个回发时显示加载图像?

当 UpdatePanel 在 ASP.Net 中更新时,使用 GIF 图像显示加载进度指示器