HighTechTalks DotNet Forums  

user control

ASP.net Building Controls microsoft.public.dotnet.framework.aspnet.buildingcontrols


Discuss user control in the ASP.net Building Controls forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
andrew
 
Posts: n/a

Default user control - 03-05-2004 , 06:26 PM






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

<infoataControl runat="server"/>

Reply With Quote
  #2  
Old   
Alessandro Zifiglio
 
Posts: n/a

Default Re: user control - 03-06-2004 , 04:48 AM






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" <anonymous (AT) discussions (DOT) microsoft.com> wrote

Quote:
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 then

infoataControl runat="server"/



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.