Event Question

Discussion in 'ASP .Net' started by WStoreyII, Jul 1, 2004.

  1. WStoreyII

    WStoreyII Guest

    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
     
    WStoreyII, Jul 1, 2004
    #1
    1. Advertising

  2. 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:
    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
    =============================================

    "WStoreyII" <> skrev i meddelandet
    news:z60Fc.82509$...
    > 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
    >
    >
     
    Andre Colbiornsen, Jul 1, 2004
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Purvi T
    Replies:
    0
    Views:
    881
    Purvi T
    Oct 19, 2004
  2. Dave Wurtz

    Event On Form From Control Event

    Dave Wurtz, Dec 9, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    367
    Kevin Spencer
    Dec 9, 2003
  3. =?Utf-8?B?QWxpcmV6YSBaaWFp?=

    PreRender Event occurs immediatley after Load event

    =?Utf-8?B?QWxpcmV6YSBaaWFp?=, Feb 9, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    2,136
    Hans Kesting
    Feb 9, 2004
  4. jorge
    Replies:
    2
    Views:
    1,291
    jorge
    May 26, 2004
  5. Lars Netzel
    Replies:
    3
    Views:
    449
    Greg Burns
    Jul 22, 2004
Loading...

Share This Page