Accessing input values across user controls

Joined
Mar 24, 2007
Messages
3
Reaction score
0
I have an ASP.NET page with a form that contains two user controls:

HTML:
<%@ Register TagPrefix="x" TagName="c1" Src="ctl1.ascx" %>
<%@ Register TagPrefix="x" TagName="c2" Src="ctl2.ascx" %>
<body>
  <form runat="Server">
    <x:c1 id="con1" runat="Server">
    <x:c2 id="con2" runat="Server">
  <form>
</body>

In one control (con1) I have a dropdownlist. In the other control (con2), I have a set of textboxes that I would like to pre-populate with values that depend on what item is selected in the dropdownlist in the first control.

How can the code for con2 access the value of the dropdownlist in con1?

Thanks for any help or suggestions.
 

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

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top