User control fires a method in webform

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
 
J

Jos

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.
 
E

Eric Veltman

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

Members online

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,043
Latest member
CannalabsCBDReview

Latest Threads

Top