Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • DanMann 44 posts 42 karma points
    Oct 07, 2010 @ 15:27
    DanMann
    0

    CSV to Table

    Hello,

    I don't really know what topic to put this under, but can anyone tell me if it is possible to create a table on a page from a CSV file stored in the media folder?

  • Sascha Wolter 615 posts 1101 karma points
    Oct 07, 2010 @ 16:47
    Sascha Wolter
    0

    Yes, this is possible. I suggest you write a .Net user control, let it know the media item it should render upon page load (aka provide as a parameter), then read out the CSV file and either put it in a custom data type and bind it to one of the .Net data controls (e.g. DataGrid) or create the html table row by row when reading the data.

    Here is some info to read out a csv file in .Net: http://www.codeproject.com/KB/database/CsvReader.aspx, or probably even better in your case: http://netomatix.com/development/importcsvintogrid.aspx

    Hope that helps,

    Sascha

Please Sign in or register to post replies

Write your reply to:

Draft