views:

41

answers:

1

I have a text file.I need to get data from this text file and show on grid ,

1)After this user can update information  from gridview, 
2)Click on save button save data on database.

Before clicking on button data don't save on database.How to do that?

+1  A: 

"In my text file ,i have more than 1000 rows,how to save them in temp database.i want to save them by using storeprocedure,how to save multiple data by executing one procedure?"

You can use SqlClient.SqlBulkCopy-Class for this. The Textfile can be the source for the bulk copy: http://blog.stevienova.com/2008/01/16/net-fastest-way-to-load-text-file-to-sql-sqlbulkcopy/

Tim Schmelter