- Page rendering and http handlers
- response.Clear();
- response.ContentType = "application/vnd.ms-excel";
- response.AddHeader("content-disposition", "attachment; filename=sample.xls");
- response.AddHeader("content-legth", content.Length.ToString());
- response.Write(content.ToString());
- response.End();