Export to Excel

Discussion in 'ASP .Net' started by Ugo, May 18, 2004.

  1. Ugo

    Ugo Guest

    We are trying to export a datagrid to excel but we are using forms
    authentication and when we change the ContentType =
    "application/vnd.ms-excel". the page that is sent to excel is out login
    page instead of the datagrid. For some reason our authentication cookie
    must get deleted.

    Any ideas.

    Thanks in advance
    Ugo
     
    Ugo, May 18, 2004
    #1
    1. Advertisements

  2. Ugo

    Cowboy Guest

    You can set up the grid Excel page as a page outside of session (via
    web.config), but I would check and see if the Excel MIME type is set up in
    IIS first, as this could be the issue.

    --
    Gregory A. Beamer
    MVP; MCP: +I, SE, SD, DBA

    ************************************************
    Think Outside the Box!
    ************************************************
     
    Cowboy, May 18, 2004
    #2
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.