User has to select the path and save the file
Save button code as followsi am directly save the excel in D folder.
for that code as follows
System.IO.StringWriter sw = new System.IO.StringWriter();
System.Web.UI.HtmlTextWriter htw = new System.Web.UI.HtmlTextWriter(sw);
gvEmpdetails.RenderControl(htw);
string renderedGridView = sw.ToString();
File.WriteAllText("D:Employee123.xl", renderedGridView)
but i want user has to select the path and save the excel.
for selecting path how can i do