i have made up a edit page for a custom tree and to keep the layout clean i used the UmbracoPanel from umbraco.uicontrols. This UmbracoPanel has a property "Text" which displays the header of the page. When i tried to bind this property to a localize string defined in the umbraco/config/lang/de.xml file via markup
Unfortunately i cannot use <%= ... %> as the Text property is part of a server tag, have to do some binding (sometimes you just cannot see the wood from the trees). I'll give data binding a try tommorrow.
Custom section and edit page...
Hi,
i have made up a edit page for a custom tree and to keep the layout clean i used the UmbracoPanel from umbraco.uicontrols. This UmbracoPanel has a property "Text" which displays the header of the page. When i tried to bind this property to a localize string defined in the umbraco/config/lang/de.xml file via markup
it won't render the string, when doing
in the codefile everything shows up perfectly and localized.
Any ideas, why using the markup could fail (or even if something is wrong with my binding syntax)?
Cheers,
André
Are you sure that DataBind is implemented & called for the page? I can't remember if it's always called as part of the page life cycle.
Personally I prefer to use <%= ... %> rather than the data binding sytax, unless I have control over whether I can call DataBind or not.
Unfortunately i cannot use <%= ... %> as the Text property is part of a server tag, have to do some binding (sometimes you just cannot see the wood from the trees). I'll give data binding a try tommorrow.
Calling DataBind() within the page does the job. Thanks.
is working on a reply...