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
Sk Jha
NA
113
43.2k
set image extension dynamically either .png or .jpg
Dec 13 2017 12:58 PM
how to set image extension dynamically either .png or .jpg because i have only image name in my database without extension in asp.net and in my folder there are .png and .jpg both files are available?
------------------------------------------------------------------------
the code which i am trying to set but if the particular file extension is not matched then how can i change .png to .jpg.
image.Src = "../image_data/" + dr["DesignNo"].ToString()+".png";
Reply
Answers (
2
)
how can add dynamically file in mvc using ajax jquery
how to solve issue when i any modified code and save in asp.