none mvc3 csv export tutorial/ code example RRS feed

  • Question

  • I am trying to find a tutorial/ instruction for exporting a csv file from model data from my database.  Using Asp.Net Mvc 3 / entity framework.  Does anyone know of anything available?  Much of what I find, leaves wholes in logic, and does not explain the entire process. 
    Saturday, November 3, 2012 6:45 PM


All replies

  • So are you saying that you have data in a database that needs to be extracted into a csv file and then shown on your ASP.NET application? Or the other way around, you have an ASP.NET application that's creating a csv file which needs to be put into a database? It's a little unclear.
    Saturday, November 3, 2012 11:27 PM
  • Sorry that was typed pretty poorly.  I have data in a database, which needs to be extracted into a csv file, which is downloadable to the user. 
    Sunday, November 4, 2012 7:59 PM
  • Hi bwise,

    Welcome to the MSDN forum.

    I'm moving the thread to current forum for better support.

    Thanks for your understanding and have a nice day.

    Yoyo Jiang[MSFT]
    MSDN Community Support | Feedback to us

    Tuesday, November 6, 2012 8:31 AM
  • What type of database? SQL Server? Oracle?

    Paul ~~~~ Microsoft MVP (Visual Basic)

    Tuesday, November 6, 2012 4:04 PM
  • SQL Server using c#
    Sunday, November 11, 2012 12:11 AM
  • Hi Bwise545,

    Please fetch the data into datatable or dataset first. Then convert data in datatable or dataset into CSV file:

    If you have anything unclear, please feel free to let us know.

    Best Regards,

    Alexander Sun [MSFT]
    MSDN Community Support | Feedback to us

    • Marked as answer by Alexander Sun Thursday, November 22, 2012 6:38 AM
    Wednesday, November 14, 2012 8:03 AM