Tuesday, 13 August 2013

Path Combine of Url in Html

Path Combine of Url in Html

Hello i building items with image the src of image combine with path than
in server and image name that in db .I need to combine them but in the
html this is my code
<asp:ListView ID="ul_LeftMenu" runat="server" ClientIDMode="Static">
<ItemTemplate >
<li class="li-LeftMenu">
<img src="<%=Path %><%# Eval("Image") %>" /><a href="../<%# Eval("Url")
%>"><%#Eval("Name") %></a></li>
</ItemTemplate>
</asp:ListView>
<%=Path %> From serverSide
<%# Eval("Image") %> from database
How to make some think like this
<img src=" Url.Combine(<%=Path %> ,<%# Eval("Image") %>)"/>

No comments:

Post a Comment