Response.Clear();
Response.ContentType = "application/xml";
Response.AppendHeader(Response.ContentType = "application/xml";
"Content-Disposition", "attachment;filename=" + strFileName + ".xml");Response.AppendHeader(
"Content-Length", strXML.Length.ToString());Response.Write(strXML.ToString());
xmlWriter.Close();
HttpContext.Current.ApplicationInstance.CompleteRequest();