Error in displaying image dynamically

Posted by Self-Innovator under HTML 5 on 12/19/2012 | Points: 10 | Views : 1397 | Status : [Member] | Replies : 0
Hi in my below code i am displaying an image with in html tabl it's working fine only if i've provided absolute path of an image , if i have give an relative path for an image it's not working...In my local system it's working i need to update under server where it was throwing error on image path....Pls find any soln

 StringBuilder sbb = new StringBuilder();
sbb.AppendLine("<html><body><center><table width='100%' cellspacing='0' border='1'");
sbb.AppendLine("<tr>");
sbb.AppendLine("<td>");
sbb.AppendLine("<center>");
sbb.AppendLine("<img src='G:/Sayeed/xlent Proj/Matrimony/Matrimony Updated Final/images/cmp_logo.gif'>");
sbb.AppendLine("</center>");
sbb.AppendLine("</td>");
sbb.AppendLine("</tr>");
sbb.AppendLine("<tr>");
sbb.AppendLine("<td align='right'>");
sbb.AppendLine("Title");
sbb.AppendLine("</td>");
sbb.AppendLine("</tr>");
sbb.AppendLine("<tr>");
sbb.AppendLine("<td align='right'>");
sbb.AppendLine("Company Address 1");
sbb.AppendLine("</td>");
sbb.AppendLine("</tr>");
sbb.AppendLine("<tr>");
sbb.AppendLine("<td align='right'>");
sbb.AppendLine("Phone No");
sbb.AppendLine("</td>");
sbb.AppendLine("</tr>");
sbb.AppendLine("</table></center></body></html>");


Join Hands Change lives
Thanks & Regards
Straight Edge Society



Responses

(No response found.)

Login to post response