2010-05-28 4 views
2

asp.net 프로젝트의 C# 코드에서 AjaxToolkit을 사용하고 있습니다. 내 페이지에 스크립트 마네 저와 업데이트 패널이 있습니다. 모든 것이 완벽합니다. 유일한 문제는 요청이 처리되는 동안 Ajax 로더 gif를 표시하는 방법을 이해할 수 없다는 것입니다.asp.net의 ajax 로더

아이디어가 있으십니까?

TY

답변

2

자체 도구 키트의 UpdateProgress가 : 당신이 좋아 보이는 screen..so의 중심에 올 것이다 사업부 로더에 어떤 스타일을 사용하는 경우이 당신에게

<asp:updatepanel id="ResultsUpdatePanel" runat="server">  
<contenttemplate> 

<div style="text-align:center;"> 
    <asp:updateprogress id="UpdateProgress1" runat="server" associatedupdatepanelid="ResultsUpdatePanel" dynamiclayout="true"> 
         <progresstemplate> 

          <img src="support/images/loading.gif"> 

         </progresstemplate> 
        </asp:updateprogress> 

        </div> 

//your control code 
</contenttemplate> 
</asp:updatepanel> 
+0

완벽합니다. 감사. –

+0

수락하고 upvote보다 –

0

을 도움이되기를 바랍니다. 이것을 사용하십시오

<div style="text-align:center;position:fixed;left:40%;top:40%;padding-top:10px;"> 
    <asp:updateprogress id="UpdateProgress1" runat="server" associatedupdatepanelid="ResultsUpdatePanel" dynamiclayout="true"> 
     <progresstemplate> 
     <asp:Image ID="LoaderImage" runat="server" ImageUrl="~/images/loading.gif" /> 
     </progresstemplate> 
    </asp:updateprogress> 
</div> 
관련 문제