pass data between Umbraco and user control? Options
shufflemoomin
Posted: Thursday, November 13, 2008 4:44:34 PM
Rank: Newbie

Joined: 9/18/2008
Posts: 14
Location: Denmark
Hi everyone,

I'm still getting to grips with Umbraco and User Controls. I have a .NET contact form on a page. The umbraco document has a property which is an email address. I would like to pass this property to the user control and have the email sent to this address. I also have an option of whether the page should display the user control or not. How do I check these umbraco properties from my .NET user control?

I can't find any good documentation about passing data between a user control and umbraco.

Any help or advice would be hugely appreciated.
Shufflemoomin
tim
Posted: Thursday, November 13, 2008 5:15:16 PM

Rank: Addict

Joined: 2/19/2007
Posts: 824
Location: Belgium
Hi,

If you have a property with alias mytext on your content page and you want to pass it to the usercontrol that is on the same page. You can just do myparameter="[#mytext]"

Umbraco tips and tricks: http://www.nibble.be - umbraco mvp 08/09 - certified level 1 & 2 professional
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.