reading data from text file into gridview

Posted by Paraskar under ASP.NET on 6/13/2009 | Views : 8600 | Status : [Member] | Replies : 2
hi ,how can i read data from text file into grid view using dataset.the data in the text file is seperated by delimiter (;;).after reading the data from text file into grid view.i need to search weather given id is in the text file data or not.if the particular id is present then i need to display complete data by the particular id.then i should be able to enter new data into the text file from front end.when the data is entered into the text file it should be seperated wid (;;) delimiter.



in this test you will use visual studio 2003 or 2005 to
create a c# web page to browse ,search and update a text file
containing basic office inventory items such as pens,paperclips,
notepads,staplers,etc.
the text file will contain rows of data items separated by
double semi colon(;;) delimiter.each record in the text file
will contain the following inventory items.

1)inventory item id.
2)item description.
3)item category.
4)inventory date(include script to validate and display alert if inventory date is greater than current date)
5)item count(number of units in inventory).

use a .Net data bound object to display and update the inventory file.Add a control
to save the data and include options to search the inventory file by description.
ID,Category and data range.




Responses

Posted by: Rahulchd3112 on: 6/18/2010 [Member] Starter

Up
0
Down
visit here:
http://howinaspnet.blogspot.com/2010/06/how-to-read-text-file-and-save-in.html

http://howinaspnet.blogspot.com

Paraskar, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vuyiswamb on: 6/15/2009 [Member] [MVP] [Administrator] NotApplicable

Up
0
Down
Good Day Paraskar

Am in a Rush to Watch Brazil and Egypt am a south African i should Support the Confederation Cup. but let me take this time to answer you where i can.

You Wrote :

hi ,how can i read data from text file into grid view using dataset

Import the Textfile into a GRiview ? if you its so here is how we do it


http://www.codeproject.com/KB/database/Cs_CSV_import_export.aspx

http://www.discussweb.com/asp-asp-net-programming/3186-how-import-csv-formatted-file-using-asp-net-c.html


lets Continue

Now if the Data is in a Dataset and you want to search the data based on the value entered in a text field you do the following

http://www.codeproject.com/KB/cs/N-Tier22.aspx

more Check my Articles written by Vuyiswa Maseko , they have to do with a lot of grid manipulation.

http://www.codeproject.com/script/Articles/MemberArticles.aspx?amid=3942021


Thank you for Posting at Dotnetfunda



Vuyiswa Maseko






Thank you for posting at Dotnetfunda
[Administrator]

Paraskar, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response