Ankit Agarwal

Ankit Agarwal

  • NA
  • 379
  • 253.4k

image content gridview display in html email template?

Nov 23 2015 7:27 AM
Hello, 
 
image content gridview display in html email template using c# asp.net?
 
I am using this code for render gridview:-
 
public string GetGridviewData(GridView gv)
{
StringBuilder strBuilder = new StringBuilder();
StringWriter strWriter = new StringWriter(strBuilder);
HtmlTextWriter htw = new HtmlTextWriter(strWriter);
gvRecords.RenderControl(htw);
return strBuilder.ToString();
}
 
Only text displayed, image did not displayed when i use this code.
 
Please help me.
 
Thanks in Advance. 
 
Ankit Agarwal
Software Engineer