How to properly reference a user control and dynamically add it to page?

Can a user control in vb.net control an control on the parent page?

  • I have an application and I have finally found a need to create some user controls since it looks like some of the forms will build off of one another. Eventually, I will have a parent page which may have just one submit button which will stay on the parent page. I have a case where I need to disable the submit button but I haven't found out how to reference the button on the control's code behind so I can disable it. Is it possible for a user control to reference controls on the parent page.

  • Answer:

    Here's a good article on how to do this: http://aspnet.4guysfromrolla.com/articles/031704-1.aspx

Rusty O at Yahoo! Answers Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.