Problem solve Get help with specific problems with your technologies, process and projects.

Calling a secondary UserControl applet

I call my applet in C# with this code:

 <object id=t
height=768 width=1024 VIEWASTEXT >
 </object >
It's working. In this UserControl applet I have a button, and when I click on this button I want to call another UserControl. How can I do that?
I would recommend making the second control a constituent control hosted on the first user control so that you would have access to the second user control from within the first. Just envision your control as being a .NET control such as the ListView and work with it just as you would if it were hosted upon a Form.

If I am missing the point of you question, and you are trying to embed separate controls in a Web page instead of building them into each other, perhaps passing a reference of the first to the second control using a method or property.

Dig Deeper on C# programming language

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.