在 updatepanel 条件模式下,我无法启用/禁用我的按钮。
</asp:ToolkitScriptManager><asp:UpdatePanel ID="UpdatePanel5" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="false">
<ContentTemplate>
<div class="buttons"><asp:Button ID="btnReturn" runat="server" Text="Return to Policy" onclick="btnReturn_Click" /> <asp:Button ID="lnkbtnEndorse" runat="server" Text="Import Data" onclick="lnkbtnEndorse_Click" />
<asp:Button ID="btnCompareTop" runat="server" Text="Compare"
onclick="Compare_Click" Enabled="false" />
<asp:Button ID="btnAdditionalInfoOpen" runat="server" Text="Additional Information" /> <asp:Button ID="Button3" runat="server" Text="Save" onclick="SaveCopy_Click" /></div> </ContentTemplate>
</asp:UpdatePanel>
我想在cs页面中启用比较按钮。
后面的代码
grdNewEndorsement.AutoGenerateColumns = false;
grdNewEndorsement.DataBind();
this.Button1.Enabled = true;
this.btnCompareTop.Enabled = true;
现在按钮已启用,但 btnAdditionalInfoOpen 按钮未打开弹出窗口
$('#ctl00_Main_btnAdditionalInfoOpen').click(function () {
$('#additional-info').dialog('open');
return false;
});