Skip Navigation LinksHome / Community & Support / Code Library / ASP.NET AJAX > General and Integration Projects > trigger a file download from RadAjaxPanel

trigger a file download from RadAjaxPanel

Feed from this thread
  • johndoe avatar

    Posted on Jun 20, 2007 (permalink)

    Requirements

    RadControls version

    1.6.2
    .NET version

    1.1
    Visual Studio version

    2003
    programming language

    c#
    browser support

    all browsers supported by RadControls


    PROJECT DESCRIPTION
      Hi,
    I have the following problem:
    I have a button in a RadAjaxPanel. When clicked it posts back on the server where i create an excel file in a buffer(byte[]).
    How do I send the file back to the client?
    Respose.WriteBinary doesn't seem to work.
    Response.Redirect to a generic download page works but it damages the viewstate for the current page.
    Adding a script to open a new page RadAjaxPanel1.ResponseScripts.Add(window.open('about:blank','mywindow','width=400,height=200'))
    has no efect

    Reply

  • Steve Steve avatar

    Posted on Jun 21, 2007 (permalink)

    Hello johndoe,

    The purpose of the code library section is different - it is a community resource where customers and Telerik developers can exchange code samples and share knowledge. Please open forums or support tickets for such requests instead.
    As to your inquiry - have you seen this help article? Also can you share what is the problem with ViewState when using Response.Redirect() method? It is supported by our ajax framework, so it should be working as expected.

    Sincerely yours,
    Steve
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Code Library / ASP.NET AJAX > General and Integration Projects > trigger a file download from RadAjaxPanel