User control fires a method in webform

Discussion in 'ASP .Net' started by Sevket Seyalioglu, Dec 27, 2003.

  1. Is there a way for the user control events to fire its webforms methods?

    I have a header user control which has 3 buttons.
    Edit , Save , Delete.

    Where ever I include that user control I will have the same named methods.
    I want this user control to fire this same named methods.

    Is there a way to do that.

    Thanks beforehand.
    SevDer
     
    Sevket Seyalioglu, Dec 27, 2003
    #1
    1. Advertising

  2. Sevket Seyalioglu

    Jos Guest

    Sevket Seyalioglu wrote:
    > Is there a way for the user control events to fire its webforms
    > methods?
    >
    > I have a header user control which has 3 buttons.
    > Edit , Save , Delete.
    >
    > Where ever I include that user control I will have the same named
    > methods. I want this user control to fire this same named methods.
    >
    > Is there a way to do that.
    >
    > Thanks beforehand.
    > SevDer


    Usually, the best solution here is to convert your user control into a
    custom control.
    Custom controls can raise their own events, which subsequently
    can be handled by the web form.

    --

    Jos
     
    Jos, Dec 27, 2003
    #2
    1. Advertising

  3. Sevket Seyalioglu

    Eric Veltman Guest

    Hello Jos,

    Jos wrote:

    > Sevket Seyalioglu wrote:
    >> Is there a way for the user control events to fire its webforms
    >> methods?

    >
    > Usually, the best solution here is to convert your user control into a
    > custom control.
    > Custom controls can raise their own events, which subsequently
    > can be handled by the web form.


    User controls can raise events as well.

    Best regards,

    Eric
     
    Eric Veltman, Dec 27, 2003
    #3
    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. titof
    Replies:
    0
    Views:
    517
    titof
    Jul 24, 2003
  2. Jason Chancellor

    Only first user control event fires.

    Jason Chancellor, Feb 15, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    381
    Jason Chancellor
    Feb 15, 2004
  3. mortb
    Replies:
    0
    Views:
    770
    mortb
    May 4, 2004
  4. Dave A
    Replies:
    1
    Views:
    1,828
    Dave A
    Jan 10, 2007
  5. Replies:
    3
    Views:
    999
Loading...

Share This Page