User control fires a method in webform

  • Thread starter Thread starter Sevket Seyalioglu
  • Start date Start date
S

Sevket Seyalioglu

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 said:
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.
 
Hello Jos,
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
 
Back
Top