Click here to Skip to main content
15,900,258 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am facing a problem to importing the csv file. I made a sample for getting data from csv file and set the values in control. but my problem is that I can't retrieve the value of particular cell in csv file.

Please help me out to resolve this problem.

I hope my question is clear to understand if any point that is not clear please ask.

Thanks in advanced
Posted
Comments
Brandon Caruana 25-Aug-12 17:23pm    
You probably won't have permission to read a csv file with javascript. Why can't you read the file server side?

1 solution

If you can read the file on client side with JavaScript, what is the problem? CSV has no cells, it has rows, and fields. First row can be the header. Thus you simply need to read the lines until you reach the row you need, split the line by comas outside quotes (supposing that it is well formed), ant grab the element you need. This would be a really good start: http://purbayubudi.wordpress.com/2008/11/09/csv-parser-using-javascript/[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900