Hi Edd,
Please try the below C# code snippet to achieve your scenario.
C#:
protected
void
RadGrid1_GridExporting(
object
source, GridExportingArgs e)
{
string
path = Server.MapPath(
"~/NewFolder1/MyFile.xls"
);
//specify the folder name
using
(FileStream fs = File.Create(path))
{
Byte[] info = System.Text.Encoding.Default.GetBytes(e.ExportOutput);
fs.Write(info, 0, info.Length);
}
Response.Redirect(Request.Url.ToString());
}
Thanks,
Princy.