【发布时间】:2011-07-03 03:56:11
【问题描述】:
我有两个更新面板如下(点击链接按钮时我试图突出显示 div)
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:Linkbutton id="btnChange" runat="server" OnCommand="LinkButton_Command"/>
<asp:Linkbutton id="btnChange2" runat="server" OnCommand="LinkButton_Command"/>
</ContentTemplate>
</asp:UpdatePanel>
<asp:UpdatePanel ID="UpdatePanel2" runat="server">
<ContentTemplate>
<div id="shdr">Hello there!</div>
</ContentTemplate>
</asp:UpdatePanel>
我正在重写 OnLoadComplete 并在页面上注册此脚本,如下所示
ScriptManager.RegisterClientScriptBlock(Me, Me.GetType(), "divHigh", "$('#shdr').effect('highlight', {}, 3000);", True)
这会在回发后突出显示 div,但超时值不起作用它继续显示突出显示的颜色并且不会变回来。
什么可能导致这不起作用?
【问题讨论】:
标签: jquery asp.net ajax jquery-ui updatepanel