Binding Eval with an ImageURL in ASP.NET

Posted by ramyatk06 on Stack Overflow See other posts from Stack Overflow or by ramyatk06
Published on 2009-07-16T05:34:16Z Indexed on 2010/05/08 21:18 UTC
Read the original article Hit count: 331

Filed under:
|
|
|
|

I'm trying to bind an image using Eval() with VB.NET and ASP.NET, but am running into issues:

Code snippet

<bri:ThumbViewer Id="Th1"  runat="server" 
   ImageUrl='<%# Eval("Name", "~/SiteImages/ram/3/{0}") %>' 
   Height="100px" 
   Width="100px" 
 />

I set strImagePath in the code-behind as:

strImagePath  ="~/SiteImages/ram/3/"

How can I replace:

~/SiteImages/ram/3/{0}

with the variable strImagePath?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about vb.net