Jonathan,
I just wanted to double check. In that case this will work:
'---Check if the sender is a button
If sender.GetType Is GetType(Button) Then
'---If it is a button check which one
Dim ButtonSent As Button = CType(sender, Button)
Dim ButtonName As String = ButtonSent.ID
End If
--
Sincerely,
S. Justin Gengo, MCP
Web Developer / Programmer
www.aboutfortunate.com
"Out of chaos comes order."
Nietzsche
"Jonathan Crawford" <jc@jcrawford.co.uk> wrote in message
news:Or*************@tk2msftngp13.phx.gbl...
ASP.NET 1.1 and aspbuttons are server control buttons
thanks jc
--
"S. Justin Gengo [MCP]" <justin@[no_spam_please]aboutfortunate.com> wrote
in message news:%2****************@TK2MSFTNGP10.phx.gbl... JC,
Are you using asp.net 1.1 or 2.0? And are these buttons regular html
buttons or buttons set with runat="server"?
--
Sincerely,
S. Justin Gengo, MCP
Web Developer / Programmer
www.aboutfortunate.com
"Out of chaos comes order."
Nietzsche
"Jignesh Desai" <ji***********@hotmail.com> wrote in message
news:um**************@TK2MSFTNGP15.phx.gbl... Earliest solution i can suggest is to query Request.Form("Button")
Best Regards
Jignesh Desai
www.dotnetjini.com
"Jonathan Crawford" <jc@jcrawford.co.uk> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
Hi
I have a form with two butons
I know if the form is a postback but I can't
find anyway to tell which button was clicked,
on the form load event.
I have a feeling that this is obvious.
Any guidance appreciated
thanks
jc