Solved

How to Add String/Text with '<%# DataBinder.Eval(Container.DataItem, "PictureURL") %>'

Posted on 2004-04-03
3
814 Views
Last Modified: 2012-06-27
I want to add jpg at the end of DataBinder.Eval.

Say i populate a grid with some fields and 1 of that field is "PictureURL"

"PictureURL" has this value "Picture1"

My Image tag is like this....

<asp:Image ImageUrl='<%# DataBinder.Eval(Container.DataItem, "PictureURL") %>' runat="server" ID="imgLeftFrame" Width="148px" Height="78px" />

but i need to add ".jpg" at the end and "picture\" at the beginning.

how ???
0
Comment
Question by:shurid
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 7

Accepted Solution

by:
ramesh12 earned 75 total points
ID: 10749245
<asp:Image ImageUrl='<%# formaturl(DataBinder.Eval(Container.DataItem, "PictureURL")) %>' runat="server" ID="imgLeftFrame" Width="148px" Height="78px" />



function formaturl(picUrl as string) as string   -----              

return "picture\" & picurl & ".jpg"
end function
0

Featured Post

The Orion Papers

Are you interested in becoming an AWS Certified Solutions Architect?

Discover a new interactive way of training for the exam.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Flash (http://en.wikipedia.org/wiki/Adobe_Flash) has evolved over the years to where it has become a masterful tool for displaying content screen.  It has excellent layout placement, UI precision as well as rendering capabilities. This, along with t…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question