Thursday, February 11, 2016

asp.net save GridView as HTML text


GridView1 is the gridview you want to save as HTML code

System.Web.UI.HtmlTextWriter htmlwriter = new System.Web.UI.HtmlTextWriter(new StringWriter());
GridView1.RenderControl(htmlwriter);
string htmlString = htmlwriter.ToString();


No comments:

Turn on Windows 11 Fast Boot

If windows starting is slow, to enable windows 11 fast startup/boot,  Press Windows + R, type powercfg.cpl, and hit Enter.  This will direct...