Issue While exporting Gridview to Excel
ย Issueย ย ย : Image is not showing in the Excel
ย Solution : The URL must be
ImageUrl=”http://localhost:63360/Website/Images/help.gif” /> instead of ImageUrl=”~/help.gif”.
ย So place URL in webcofig
<add key=”ImagePath” value=”http://localhost:63360/Website/Images/”/>
CodeBind :
imgStat.ImageUrl = ConfigurationSettings.AppSettings[“ImagePath”].ToString() + @”help.png”;
Leave A Comment