2
我有一個用.ascx編寫的代碼,也用於登錄按鈕。在瀏覽器進入用戶頁面之前如何顯示loading.gif? 這裏是登錄按鈕代碼:如何在單擊登錄按鈕時顯示loading.gif?
<div class="login">
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:Button ID="btnlogin" runat="server" Text="Log In" border="0"
style="width:47px; height:20px;Background-color:#24b1d7; float:right; text-align:center; cursor:pointer; font-family:'Lucida Grande',Tahoma,Verdana,Arial,sans-serif; border:0px; color:#FFFFFF; font-weight:bold; font-size:11px; padding: 1px 0 2px; line-height:0px;" />
</ContentTemplate>
</asp:UpdatePanel>
更新面板更新時可能出現的[ASP.NET顯示「正在加載...」消息的副本](http://stackoverflow.com/questions/7704171/asp-net-display-loading-message-while-update - 面板-是更新) – Aristos