Save images path
How to save images path in database from folder in gridview?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
SenthilkumarRank #387 · 6.5K reputationPosted Mar 11, 2012, 11:36 PM EDT
Lets consider an table.
As a developer, you know where the image resides. Then what you need to do is
Server.MapPath("Path")+"image name";
Assign this to the image control.
The reason for do not store the entire image url is you may move this folder to some where later and no need to store that much size. you can store the space as well.
Hope this will answer your question.
If it is useful then mark it as accept answer.