Reputation: 194
I am using GlassMapper in Sitecore Webforms, and i want to render image, but image is not rendering.
here is my code:
<% using (BeginRenderLink(x => x.LogoLink, isEditable:true))
{ %>
<%=RenderImage(x=>x.SiteLogo) %>
<% } %>
Upvotes: 1
Views: 660
Reputation: 1088
Are you sure, you using appropriate Model use like as:
<%= RenderImage(x => x.Image, isEditable: true) %>
if your are not able to fix your issue, try also
<%= GlassHtml.Editable(Model, x=> x.Image, x=> GlassHtml.RenderImage(x.Image)) %>
<%= Editable(x=> x.Image, x=> GlassHtml.RenderImage(x.Image)) %>
Upvotes: 2