I'm trying to Use EPiServer Property in my aspx page as follows :
<EPiServer:Property ID="EPiPropURLtoDocument" runat="server" PropertyName="PropertyDocumentURL" />
And the ASPX.cs file is also inherited from TemplatePage class.
But, In the web I'm seeing the message as "[Error: No property "PropertyDocumentURL".]"
When I tried with :
<EPiServer:Property ID="EPiPropURLtoDocument" runat="server" PropertyName="PageLink" />
I can see there is a pagelink.Please help me, Why I'm failing to use 'URL toDocument' property?
PropertyDocumentUrl is a type, while PageLink is a property name. I'm guessing you need to change your markup to
<EPiServer:Property runat="server" PropertyName="EPiPropURLtoDocument" />
Thanks for the Reply.
I trie your suggestion but, agin I got the Error message as : [Error: No property "EPiPropURLtoDocument".]
Actually, In the code :
"EPiPropURLtoDocument" is something that I have given for the reference, but it is not used/created anywhere earlier.