public String get_url(String str)
{
if (str != null && str.Length > 0)
return ("~/CandidateImages/" + str);
else return null;
}
i m getting the path right but the image is not displayng in gridview can anyone tell me wht the problem.
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
Kirtan PatelRank #292 · 8.6K reputationPosted Oct 30, 2009, 9:41 PM EDT
i think you have not Added the Image Extension in str that why its happening ..
return ("~/CandidateImages/" + str+".jpg");
you should also mention extension like above code like .jpg / .png / .gif what ever your image extension is :)
if my answer helps you please check "Do you like this answer" :)