469,141 Members | 1,172 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,141 developers. It's quick & easy.

how to trap an event on a html button created with <input....>

I have a html button created with
<input type="submit" id="btnPayNotices" value="Pay Notices" />

now I need to trap the click event at the server side.

Yes, this button had to be created with plain html, not with asp.net

how can i do this ?
Nov 18 '05 #1
2 1396
add a runat=server

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"Rocio" <ro************@softwareservices.net> wrote in message
news:7b*************************@posting.google.co m...
I have a html button created with
<input type="submit" id="btnPayNotices" value="Pay Notices" />

now I need to trap the click event at the server side.

Yes, this button had to be created with plain html, not with asp.net

how can i do this ?

Nov 18 '05 #2
And create the button in your code.

Protected WithEvents btnPayNotices As System.Web.UI.HtmlControls

'---Note: Create the button exactly the same as it's id.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:ur**************@TK2MSFTNGP11.phx.gbl...
add a runat=server

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"Rocio" <ro************@softwareservices.net> wrote in message
news:7b*************************@posting.google.co m...
I have a html button created with
<input type="submit" id="btnPayNotices" value="Pay Notices" />

now I need to trap the click event at the server side.

Yes, this button had to be created with plain html, not with asp.net

how can i do this ?


Nov 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Dave | last post: by
1 post views Thread by anonymou | last post: by
reply views Thread by darren | last post: by
2 posts views Thread by Robin | last post: by
1 post views Thread by tariqahmedpak | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
1 post views Thread by Mortomer39 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.