Error while using RadAjaxPanel ....

3 posts, 0 answers
  1. Manoj
    Manoj avatar
    75 posts
    Member since:
    Dec 2008

    Posted 13 Mar 2009 Link to this post

    Hi Team,
        I have to implement the Export To Excel functionality . So when user will click on the buton a file donw window popup will appear , user can open the file , save the file and cancel it . But it is giving some warning message . I have  used RadAjaxPanel to reduce the page post back .
    I checked it when I am not using the RadAjaxPanel it is working fine ( wndow popup is coming ) . But when I am using the RadAjaxPanel it is giving an error .
    Error Text is :
    sys.webforms.pagerequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enables.

    Code snipet which I am using is : This is under a button click .

    Response.ContentType =

    "application/vnd.ms-excel";

     

    Response.AppendHeader(

    "Content-Disposition", "attachment; filename=Test12.xls");

     

    Response.TransmitFile(Server.MapPath(

    "/Excel/Test12.xls"));

     

    Response.End();

    Can you please look into it and suggest what steps I have to take to avoid this .

    Regards
    Manoj

  2. Manoj
    Manoj avatar
    75 posts
    Member since:
    Dec 2008

    Posted 14 Mar 2009 Link to this post

    Hi Team,
        Can you please give me an updates on this . It's urgent for me .

    Regards
    Manoj
  3. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 16 Mar 2009 Link to this post

    Hi Manoj,

    Export trough ajax is not possible - you need to perform this using regular post-back.

    Sincerely yours,
    Vlad
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top