Quantcast
Channel: DevNet Questions
Viewing all articles
Browse latest Browse all 8901

Codeblock error in design tab but not the front-end of website

$
0
0
Hi!I load the headerimage like this which works fine on the front-end:style='background-image: url(@~/getattachment/@%= CMS.DocumentEngine.DocumentContext.CurrentDocument.GetValue(@PageHeaderImage@) %@/@%= CMS.DocumentEngine.DocumentContext.CurrentDocument.DocumentName %@.aspx@)' But on the design tab of the page app I get this error: The Controls collection cannot be modified because the control contains code blocks (i.e. @% ... %@).What's the proper way to achieve a result that works both ways?Thanks!

Viewing all articles
Browse latest Browse all 8901

Trending Articles