只是想知道是否有人见过 C# .net 应用程序的可用进度条。我的应用程序需要大约 20-60 秒才能加载,我很乐意在用户等待时向他们显示进度条。我看到this one但示例网站似乎不起作用,这无法激发信心。
最佳答案
您可以使用AJAX UpdateProgress control 。
<asp:ScriptManager ID="ScriptManager1" runat="server" />
<asp:UpdateProgress runat="server" id="PageUpdateProgress">
<ProgressTemplate>
Loading...
</ProgressTemplate>
</asp:UpdateProgress>
<asp:UpdatePanel runat="server" id="Panel">
<ContentTemplate>
<asp:Button runat="server" id="UpdateButton" onclick="UpdateButton_Click" text="Update" />
</ContentTemplate>
</asp:UpdatePanel>
如果您想要动画,您所需要做的就是将动画 .gif 弹出到“ProgressTemplate”中。
关于asp.net - 知道适合我的 ASP.net 应用程序的良好页面加载进度条吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/220872/