我在显示 ModalPopupExtender 的选项卡面板上有一个链接按钮。问题是它的 onclick 事件没有被触发。每当单击链接按钮时,都会显示模式弹出窗口(应该会发生),但不会触发单击事件
<asp:LinkButton ID="lnkAddNewAddress" runat="server" OnClick="lnkAddNewAddress_Click">Click Here To Add New Address</asp:LinkButton>
<asp:ModalPopupExtender ID="lnkAddNewAddress_ModalPopupExtender" runat="server" BackgroundCssClass="modalBackground"
DynamicServicePath="" Enabled="True" PopupControlID="pnlMyAddressBook" TargetControlID="lnkAddNewAddress"
ViewStateMode="Enabled">
</asp:ModalPopupExtender>
protected void lnkAddNewAddress_Click(object sender, EventArgs e)
{
GetCountryInLightBox();
GetStateInLightBox();
//lnkAddNewAddress_ModalPopupExtender.Show();
ClearTextBoxes();
ViewState["Click"] = "Add";
}