更新进度问题 [英] Update Progress Problem

查看:80
本文介绍了更新进度问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用以下代码:

I am using following code :

<asp:UpdatePanel runat="server" ID="updRecent" UpdateMode="Conditional">
<ContentTemplate>





<asp:UpdateProgress ID="UpdateProgress" runat="server"  >
   <ProgressTemplate><img src="../common/images/loader.gif" /><span style="color:Red;font-size:medium;vertical-align:top;">Please Wait............</span>
</ProgressTemplate>
   </asp:UpdateProgress>
 </div>
 <div class="paging boder_none">
   <ul class="artists">
   <li><asp:LinkButton ID="lnk_conversation_prev" runat="server" CssClass="prev"

             OnClick="lnk_conversation_prev_Click"></asp:LinkButton></li>
     <li class="next_padding" runat="server"><span><%=conversation_CurrentPage%></span> of <span><%=conversation_PageCount%></span></li>
     <li><asp:LinkButton ID="lnk_conversation_next" runat="server" CssClass="next"

             OnClick="lnk_conversation_next_Click"></asp:LinkButton></a></li>
   </ul>
 </div>


</ContentTemplate>
</asp:UpdatePanel>



当我第一次单击任何链接按钮时,会出现进度条,但此后再也不会单击.


</ContentTemplate>
</asp:UpdatePanel>



When i click on any link button at first time then progress bar occur but after that it does not occur on any click.

推荐答案

嗨 Nidhi,

请在ContentTemplate结束标记后尝试以下操作

Hi Nid

Please try the following after the ContentTemplate closing tag

</ContentTemplate>
                               <Triggers>
                                   <asp:AsyncPostBackTrigger ControlID="lnk_conversation_next" EventName="Click" />
                               </Triggers>
                           </asp:UpdatePanel>




如有任何疑问,请让我知道.

如果有帮助,请提供"投票",如果这是正确的答案,请提供"接受答案".

谢谢,
Imdadhusen




Please do let me know, if you have any doubt.

Please provide "Vote" if this would be helpful, and make "Accept Answer" if this would be correct answer.

Thanks,
Imdadhusen


您似乎缺少为UpdateProgress定义的关联更新面板.

试试这个:
It looks like you are missing Associated Update Panel defined for UpdateProgress.

Try this:
<asp:UpdatePanel runat="server" ID="updRecent" UpdateMode="Conditional">
    <ContentTemplate>
          SOME CONTROLS here. Like the link you need,.
    </ContentTemplate>
</asp:UpdatePanel>

<asp:UpdateProgress ID="UpdateProgress" runat="server" AssociatedUpdatePanelID="updRecent"  >
   <ProgressTemplate>
        <img src="../common/images/loader.gif" />
   </ProgressTemplate>
</asp:UpdateProgress>



有关更多详细信息,请在此处 [



For more details, look here[^].


这篇关于更新进度问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆