2012-09-06 1 views
0

저는 userControl로 ajax의 UpdateProgress 컨트롤을 사용하고 있습니다. 프로젝트의 모든 updatePanels에 대해 표시됩니다. 때로는 특정 업데이트 패널에 대해이 updateProgress를 숨기려고합니다. 도움을 주시면 감사하겠습니다.ASP.NET 업데이트 진행률 컨트롤 숨기기

답변

0

당신은 ..이 확실히 진행 표시 줄이에 대해 보여줍니다 만들 것의 UpdateProgress 줄의 AssociatedUpdatePanelID = "UP1"설정이 샘플

<asp:Panel ID="YourPanelContainer" runat="server" Height="50px" Width="125px"> 

<asp:UpdateProgress ID="UpdateProgress1" runat="server" > 

<ProgressTemplate> 
0

를 들어이 코드

YourPanelContainer.Style.Add("display", "none"); //Add your control to panel or div 

으로 시도 할 수 있습니다 연결된 ID.

이렇게하면 UP1이 업데이트 될 때 표시됩니다.

관련 문제