hello, i have created a usercontrol that resides within one of my templates.
i deployed a compiled web usercontrol dll to the bin directory and the .ascx file to usercontrols directory.
the usercontrol renders but is not taking the parameters (public properties of the usercontrol).
in macro properties i have selected .net usercontrol and selected the control which i deployed - i browsed properties from the button and it read them succesfully, so I save them.
then i placed it in the template like below;
Code:
<?ASPNET_FORM>
<?UMBRACO_MACRO macroAlias="MyUmbracoArticle" AuthorUserId="xxxxxxx-7322-4197-xxxxx-3F66xxxBB" IsPublic="false" ArticleTitle="my title" PublishDate="21/02/2008 2:41:40 PM" ArticleContent="content"></?UMBRACO_MACRO>
</?ASPNET_FORM>
my usercontrol then should display the values but it doesn't
also the properties will be read from the umbraco page fields - but i was simplifying the tests.
will this be the correct way to gather the umbraco data to supply to my usercontrol
Code:
<?ASPNET_FORM>
<?UMBRACO_MACRO macroAlias="MyUmbracoArticle" AuthorUserId="<?UMBRACO_GETITEM field="userId"/>" IsPublic="<?UMBRACO_GETITEM field="isPublic"/>" ArticleTitle="<?UMBRACO_GETITEM field="articleTitle"/>" PublishDate="<?UMBRACO_GETITEM field="publishDate"/>" ArticleContent="<?UMBRACO_GETITEM field="<?UMBRACO_GETITEM field="articleContent"/>"/>"></?UMBRACO_MACRO>
</?ASPNET_FORM>
I have been following the example from
http://en.wikibooks.org/wiki/Umbraco/Samples_and_Articles/Dot_Net_Controls/Using_Dot_NET_Controls_With_Umbracoany help would be muchly appreciated. This is killing me :P