Access form from a user control

  • Thread starter Thread starter Christian Ista
  • Start date Start date
C

Christian Ista

Hello,

I have a usercontrol on page, this one is place on a panel.

On the page there is some others panel and controls on it.

I'd like from the user control use a another control on the form.

For example, I have a panel, with a Label to display the error message
generated by the user control. Could you tell me how to do that ?


Thanks,
 
You should be able to find a control using Page.Findcontrol method, which
returns a control type. you should type cast before you use it as whatever
control you were looking for
 

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