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
 

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

Back
Top