Re: onclick event not firing
From: No One (noone_at_yahoo.com)
Date: 12/23/04
- Next message: 2obvious: "Re: Events with no arguments?"
- Previous message: Daniel Ansari: "Re: Proper session timeout"
- In reply to: twostepted: "Re: onclick event not firing"
- Next in thread: Vko: "Re: onclick event not firing"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 23 Dec 2004 04:23:34 GMT
twostepted wrote:
> Anyone,
>
> I'm having the same problem. Here is what I've done:
>
> Event Signature:
> protected void btnDelete_Click(object sender, System.EventArgs e)
>
> In InitializeComponent:
> this.btnDelete.Click += new System.EventHandler(this.btnDelete_Click);
>
> In .aspx file:
> <asp:Button id="btnDelete" CssClass="clsButton" runat="server"
> Text="Delete" ToolTip="Permanently delete this message"
> OnClick="btnDelete_Click" />
>
> I've tried taking the OnClick="btnDelete_Click" out of the <asp:Button>
> tag. I've also tried commenting out the this.btnDelete.Click += new
> System.EventHandler(this.btnDelete_Click). Neither has any effect.
> I'm never making it into the btnDelete_Click event. Does anyone have
> any ideas why?
>
> Thanks,
>
> --twostepted
Does your <asp:Button /> HTML code have Runat="Server"?
- Next message: 2obvious: "Re: Events with no arguments?"
- Previous message: Daniel Ansari: "Re: Proper session timeout"
- In reply to: twostepted: "Re: onclick event not firing"
- Next in thread: Vko: "Re: onclick event not firing"
- Messages sorted by: [ date ] [ thread ]