Export Datagrid to excel

Discussion in 'ASP .Net Datagrid Control' started by Ashwani Raghav, Sep 15, 2005.

  1. Hi,

    I have written the code to export my datagrid to excel. it is working fine.
    But i have one issue, when ever i click on export button, it prompts me eith
    to open, save or Cancel. When i click on save or cancel, it works fine. But
    when i click on open button, it opens the excel on the same web page. I want
    to open it on a new excel spread sheet.

    How to accomplish this? Please help.

    Thanks in advance.
    Ashwani
    Ashwani Raghav, Sep 15, 2005
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Cowboy \(Gregory A. Beamer\)

    Export datagrid(with allowsorting) to Excel

    Cowboy \(Gregory A. Beamer\), Jun 25, 2003, in forum: ASP .Net
    Replies:
    6
    Views:
    523
  2. =?Utf-8?B?U3JpZGhhcg==?=

    using Microsoft Excel image for Export to Excel button

    =?Utf-8?B?U3JpZGhhcg==?=, Dec 9, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    3,105
    =?Utf-8?B?U3JpZGhhcg==?=
    Dec 9, 2005
  3. =?Utf-8?B?SGVtYW50IFNpcGFoaW1hbGFuaQ==?=

    Export to Excel (Default File Type - Excel)

    =?Utf-8?B?SGVtYW50IFNpcGFoaW1hbGFuaQ==?=, Apr 24, 2006, in forum: ASP .Net
    Replies:
    15
    Views:
    17,521
    syed hassan
    May 21, 2009
  4. Grey
    Replies:
    4
    Views:
    1,973
    Mark Rae [MVP]
    Oct 17, 2007
  5. Paul D. Fox

    Display a Datagrid & Export a Datagrid to Excel

    Paul D. Fox, Jul 21, 2005, in forum: ASP .Net Datagrid Control
    Replies:
    1
    Views:
    224
    Elton Wang
    Jul 21, 2005
Loading...

Share This Page