以下是3个步骤中的问题:
1 - 按下ConfirmButtonExtender btn0
2 - 弹出窗口,里面有2个按钮(确认和取消)
3 - 按下确认按钮然后调用btn0_Click
我希望第一次按下btn0时可以打电话
的.aspx
<asp:Button runat="server" ID="btn0" Text="OK" OnClick="btn0_Click" />
<cc1:ConfirmButtonExtender ID="ConfirmButtonExtender_GetHour"
runat="server" TargetControlID="btn0" OnClientCancel=""
DisplayModalPopupID="ModalPopupExtender_GetHour"
ConfirmOnFormSubmit="true"
ConfirmText="yo?" />
<br />
<cc1:ModalPopupExtender ID="ModalPopupExtender_GetHour"
runat="server" PopupControlID="PNL_getHour"
TargetControlID="btn0" OkControlID="ButtonOk_GetHour"
CancelControlID="ButtonCancel_GetHour"
Enabled="True"> </cc1:ModalPopupExtender>
<asp:Panel ID="PNL_getHour" runat="server">
POPUP WITH A BUTTON AND A CANCELBUTTON
</asp:Panel>
的.cs
protected void btn0_Click(object sender, EventArgs e)
{
//I WANT THIS METHOD TO WORK WHEN BTN0 IS PRESSED
//AND NOT WHEN THE POPUP'S CONFIRM BUTTON IS PRESSED
}