?
Solved

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

Posted on 2004-04-03
3
Medium Priority
?
819 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 300 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…

650 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