Event Question

  • Thread starter Thread starter WStoreyII
  • Start date Start date
W

WStoreyII

when using a codebehind aspx form.

i know how to declare the event in the code the .vb file
but my question is do i need to still declare the event in the attribute of
the control on the aspx form?

WStoreyII
 
No, you don't, but only if you add the following to the method, and I'll
provide an example:

Private Sub myButton_Click(s As Object, e As EventArgs) Handles
myButton.Click
'Code
End Sub

Hth.
Halsningar/Sincerely

Andre Colbiornsen, MVP Visual Developer Asp/Asp.Net
=====================================
Sonnenburg Communications
Bergsgatan 3,
SE-211 54 MALMO, SWEDEN
Ph.: +46 40 97 78 80
Mob: +46 708 97 78 79
Mail: (e-mail address removed)
Web: www.sonnenburg.se
=============================================
B2B Web solutions on the Internet since 1996
Microsoft.Net Specialists
Dotnetfriends Cofounder www.dotnetfriends.com
Asp.Net Moderator www.asp.net
=============================================
 
Back
Top