Hi,
I am having a user control in RadAjaxPanel of a content page. Now i want to include an image button in the usercontrol which on clicking should export the page content to a .doc file. i tried this code :
protected void Export(object sender, EventArgs e)
{
HttpContext.Current.Response.Clear();
Response.ContentType = "application/msword";
Response.AddHeader("Content-Disposition", "attachment;filename=Export.doc");
StringBuilder strHTMLContent = new StringBuilder();
strHTMLContent.Append("<html>");
strHTMLContent.Append(lbExp.Text);
strHTMLContent.Append("</html>");
Response.Write(strHTMLContent);
Response.End();
}
This is working fine in a demo application with a single button,shows the download window and exports the content but in my application, it is showing the Sys.WebForms.PageRequestmanager.ParserErrorException owing to the RadAjaxPanel used.
I went through several methods of excluding the controls, etc but none works..
Please help me regarding this..