Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Videourl View modes: 
User avatar
Member
Member
maggie.nu-gmail - 6/9/2011 3:35:38 AM
   
Videourl
I need to resolve the videourl for no avail i keep getting CMSDataProperties.LoadTransformation]: The server tag is not well formed

if i insert manually the address http://localhost/Gamaf/getattachment/c1864310-02b2-43bc-ba67-da9cb57e94e1/poalim.asp
its all working fine

how to write the video url ??


<%@ Register TagPrefix="cc2" TagName="Video" Src="~/CMSWebParts/Media/Video.ascx" %>

<cc2:Video VideoURL="<%#ResolveUrl('http://localhost' + GetFileUrl("Video").ToString()) %>" runat="server" Id="video" Width="200" Height="100" Autostart="true" />


User avatar
Member
Member
maggie.nu-gmail - 6/9/2011 6:38:27 AM
   
RE:Videourl
Nevermind got it myself

VideoURL='<%#ResolveUrl("http://localhost" + GetFileUrl("Video").ToString()) %>'

just changed the quotation

User avatar
Kentico Support
Kentico Support
kentico_zdenekc - 6/9/2011 7:54:03 AM
   
RE:Videourl
Hi,

thanks for the update... sure, when you're using inline code in nested webpart / control's property in transformation, single quotes have to be used.

Cheers,
Zdenek