How generate the data from a GridView to a text file?

Discussion in 'ASP .Net Datagrid Control' started by Carlos, Jul 13, 2006.

  1. Carlos

    Carlos Guest

    Hello all
    I have infromation that change every time, I created a button to export this
    data to a text file.
    It's possible? There is a command or a script or another solution?

    Thanks in advanced.
    C.
    Carlos, Jul 13, 2006
    #1
    1. Advertising

  2. Hi Carlos,

    Wouldn't you want to export the underlying dataset rather than the GridView?

    DataSet.WriteXml Method
    Writes XML data, and optionally the schema, from the DataSet.

    http://msdn2.microsoft.com/en-us/library/system.data.dataset.writexml.aspx

    Ken
    Microsoft MVP [ASP.NET]

    "Carlos" <> wrote in message
    news:%...
    > Hello all
    > I have infromation that change every time, I created a button to export
    > this data to a text file.
    > It's possible? There is a command or a script or another solution?
    >
    > Thanks in advanced.
    > C.
    >
    Ken Cox [Microsoft MVP], Jul 14, 2006
    #2
    1. Advertising

  3. Carlos

    Carlos Guest

    Thanks a lot
    C.

    "Ken Cox [Microsoft MVP]" <> wrote in message
    news:...
    > Hi Carlos,
    >
    > Wouldn't you want to export the underlying dataset rather than the
    > GridView?
    >
    > DataSet.WriteXml Method
    > Writes XML data, and optionally the schema, from the DataSet.
    >
    > http://msdn2.microsoft.com/en-us/library/system.data.dataset.writexml.aspx
    >
    > Ken
    > Microsoft MVP [ASP.NET]
    >
    > "Carlos" <> wrote in message
    > news:%...
    >> Hello all
    >> I have infromation that change every time, I created a button to export
    >> this data to a text file.
    >> It's possible? There is a command or a script or another solution?
    >>
    >> Thanks in advanced.
    >> C.
    >>

    >
    >
    Carlos, Jul 14, 2006
    #3
    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. Weng Tianxiang
    Replies:
    5
    Views:
    1,300
    Christophe
    Feb 16, 2006
  2. =?Utf-8?B?bWdvbnphbGVzMw==?=

    GridView Hierarchical View - Gridview in Gridview

    =?Utf-8?B?bWdvbnphbGVzMw==?=, May 9, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    17,946
    =?Utf-8?B?UGhpbGxpcCBXaWxsaWFtcw==?=
    May 9, 2006
  3. Replies:
    3
    Views:
    398
    red floyd
    Apr 7, 2006
  4. Harlan Messinger
    Replies:
    2
    Views:
    2,281
    John Bell
    Mar 28, 2010
  5. Asif Iqbal
    Replies:
    0
    Views:
    150
    Asif Iqbal
    Aug 6, 2009
Loading...

Share This Page