- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
[AcceptVerbs(HttpVerbs.Post)]
public ActionResult SaveLastReport(string gridHtml)
{
var buf = Convert.FromBase64String(gridHtml);
var str = System.Text.Encoding.UTF8.GetString(buf, 0, buf.Length);
System.IO.File.WriteAllText(Server.MapPath("~/content/lastreport.html"), str);
return RedirectToAction("LastReport");
}