Usercontrols - Public property Options
anaithum
Posted: Thursday, September 18, 2008 1:50:14 PM
Rank: Newbie

Joined: 9/18/2008
Posts: 1
Location: Denmark
I am very new to Umbraco.
I have created two usercontrols and Usercontrol1 has a public property.

In the template I am using them like this:

<?UMBRACO_MACRO macroAlias="Usercontrol1" publicProperty1="1"></?UMBRACO_MACRO>
<?UMBRACO_MACRO macroAlias="Usercontrol2"></?UMBRACO_MACRO>

so I would like to define/set the publicProperty1's value from Usercontrol2?

How can I do it?d'oh!
radu84
Posted: Monday, September 22, 2008 9:39:10 AM
Rank: Enthusiast

Joined: 7/23/2008
Posts: 27
Location: Copenhagen
Well that would mean Usercontrol2 requires a reference to Usercontrol1.

There are plenty of ways of doing this, such as getting the ID of Usercontrol1 and then maybe using a FindControl method on the Page.
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.