Event Question

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
 
A

Andre Colbiornsen

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
=============================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top