If want to my imagebox can navigate to the other page..

Topics: Developer Forum
Sep 11, 2008 at 10:17 AM
<% foreach (MvcTest.Models.ImagePage item in ViewData.Model.Image) { %>
     <img src="../..<%= HttpUtility.HtmlDecode(item.UploadImage) %>" alt=""/><br />
     <%= N2.Web.Link.To(item) %><br /><br />
 <% } %>

The image can display but can not navigate to linked page by click event, how can I do that?
Coordinator
Sep 11, 2008 at 7:39 PM
Not sure I understand the problem. Have you tried this?

<% foreach (MvcTest.Models.ImagePage item in ViewData.Model.Image) { %>
     <a href="<%= item.Url %>"><img src="../..<%= HttpUtility.HtmlDecode(item.UploadImage) %>" alt=""/></a><br />
 <% } %>