user control

A

andrew

I have a user control that works fne (hits db display datalist) but on a different section of my page i want to use some datafrom the user control

Is there a way to pass information from the control to page

<%@ Register TagPrefix="info" TagName="DataControl" Src="datactrl.ascx" %

and the

<info:DataControl runat="server"/>
 
A

Alessandro Zifiglio

sure Andrew. Have you tried using get/set accessor to expose properties of
your usercontrol.

You can then retrieve the values in the container page doing :

mydata1 = usercontrol1.property1
mydata2 = usercontrol1.property2

etc.


andrew said:
I have a user control that works fne (hits db display datalist) but on a
different section of my page i want to use some datafrom the user control.
 

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

Forum statistics

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

Latest Threads

Top