I\'m trying to bind an image using Eval()
with VB.NET and ASP.NET, but am running into issues:
string strImagePath = "aPage.aspx";
string pathFormat = "~/SiteImages/ram/3/{0}";
string path = String.Format(path, strImagePath);
Thats a little bit verbose, but you get the idea. What you're looking for is the String.Format method.
You can read more about it over at MSDN -> String.Format
So in your case that would be:
as long as strImagePath
is set to public
or protected
in your codebehind