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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Kirtan PatelPosted Oct 31, 2009, 1:41 AM
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" :)