handling events inside a userControl

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a webform that contains a placeholder control that is filled with various usercontrols.
I have an error/info message label on the webform (for interface clenliness). Sometimes the the usercontrol has to populate the message label on the webform. How can I have the webfrom respond to this type of request from the user control?

Thanks
 
Well, I think your Subject indicates you're thinking in the right direction.
Have the UserControl raise an event, and have the WebForm handle the event.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

Xaviero said:
I have a webform that contains a placeholder control that is filled with various usercontrols.
I have an error/info message label on the webform (for interface
clenliness). Sometimes the the usercontrol has to populate the message label
on the webform. How can I have the webfrom respond to this type of request
from the user control?
 
Actually thats my problem,

How do I have the usercontrol raise the event? And how do I have the webform handle the event. Sorry for being such a newbie
 
Here's a link to download the Microsoft .Net SDK:

http://www.microsoft.com/downloads/...A6-3647-4070-9F41-A333C6B9181D&displaylang=en

It has everything you need, including articles, tutorials, examples, and a
complete reference.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

Xaviero said:
Actually thats my problem,

How do I have the usercontrol raise the event? And how do I have the
webform handle the event. Sorry for being such a newbie
 
Thanks,
It looks like I need to pay more attention when I read my books, I have that one. lol
 

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