0
我有以下代碼:刪除確認需要服務器端腳本
<asp:Button ID="btnDelete" runat="server" Text="Delete Report" OnClientClick="return confirm ('This will delete the report. Continue?');" OnClick="btnDelete_Click" />
protected void btnDelete_Click(object sender, EventArgs e)
{
// I have code here but it never fires
}
一旦確定用戶點擊我如何才能在服務器端腳本來火,其實刪除。
當按鈕被點擊時,你到達服務器? 'Page_Load'? –