I have created a user control UCQuery.acx. It consists of
a number of drop down list boxes. I created this control
because the same drop down list boxes must appear on
several aspx pages for user selection of data for input
into a database query.
So I have the ascx and I add it to my wp.aspx:
<%@ Register TagPrefix="uc1" TagName="UCQuery"
Src="UCQuery.ascx" %>
and
<uc1:ucquery id="UCQuery1" runat="server"></uc1:ucquery>
Now in my wp.aspx.cs I want to reference UCQuery1 but I
get an error.
I need to call public methods in the ascx from my aspx.cs
in order to get the user selections from the control and
pass them on.
Am I out of line in thinking this can be done with a user
control?
Thanks in advance,
JV