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
Related Q & A:
- How to properly reference a user control and dynamically add it to page?Best solution by Stack Overflow
- How to save from DatagridView to Database VB.NET?Best solution by Stack Overflow
- Can a step parent ever get custody of me?Best solution by Yahoo! Answers
- Where can we buy a remote control car?Best solution by Yahoo! Answers
- Can you remote control an i-phone from a computer?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
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.