TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
sameer shaikh
NA
177
38.9k
How to bind image url to Image control?
Jun 14 2017 7:25 AM
Hi
I have a image tag in asp.net form and binding image url dynamically to image tag, but its not working,
I have used below code
public static string ImageName { get; set; }
public static string ImageURL { get; set; }
ImageName="welcome.png" ;
ImageURL="~/Slider/"+ImageName;
<img id="img1" src='<%= ImageURL %>' runat="server"> even i tried like
<img id="img1" src='<%# Eval("ImageURL") %>' runat="server">
<img id="img1" src='<%# string.Format("~/Slider/{0}", Eval("ImageName")) %>' runat="server">
but its also not working to me.
Please let me know how to fix it
Thanks & Regards
Sameer Shaikh
Reply
Answers (
3
)
Using Asp.net asmx unable to set open graph meta tag
how do i get data amd bind to a table using web api