Image path is not reterive from server
On server Image is reterive proper. In Web Cofig i did give the Path of image that path is reterive on my page.Now i did take the project from server on local machine but image is not reterive. How i can do it, what changes i should change in the code.
Code is given below:
In Web Cofig There is One Line: <add key="ImageFolder" value="C:\IMAGE_FILES\"/>
Image Icon will show below the code.
protected string GetImagePath()
{
return Request.ApplicationPath + "/images";
}
if (drawCrossTeam)
{
strReqTable.Append("<td class=\"td50\"><table width=\"100%\" height=\"80\" border=\"0\" cellpadding=\"2\" cellspacing=\"2\" class=\"border\">");
strReqTable.Append("<tr>");
strReqTable.Append("<td width=\"34%\"><img id=\"btnLms\" src=\"" + GetImagePath() + "/salestrack_ibfsl.jpg\" style=\"cursor:pointer\" onclick= \"return OnSystemChange('USERCOMPANY');\" /></td>");
strReqTable.Append("<td width=\"1%\" valign=\"top\" background=\"images/divider.jpg\"> </td>");
strReqTable.Append("<td width=\"55%\" valign=\"top\" class=\"content\">");
strReqTable.Append("Salestrak System for :<br />");
strReqTable.Append("- Home Loans<br />");
strReqTable.Append("- Home Equity</td>");
strReqTable.Append("</tr>");
strReqTable.Append("</table></td>");
drawCrossTeam = false;
break;
}