...

View Full Version : Insert Contents Of Text File Into Database



anitha2324
04-22-2007, 09:36 PM
Hi All,

Am Newbie To Asp.net, I Want To Allow The User To Upload A Text File From Any Client In The Network To The Server And Then Insert The Contents Of This File Into A Table In Oracle Database,
Contents Of The Text File Looks Like (employee Id , Name , Mobile No)
258,john Terry,5869742
124,jun Moris,478596
301,osk Mary,475
........

And Is There Any Way To Insert The Contents Of The User Text File Directly Into The Database Without Uploading It To The Server ,

Please Send Me With Full Code Am A Newbie To Asp.net

Krokador
04-23-2007, 07:04 PM
http://www.codeproject.com/aspnet/fileupload.asp

go there, it explains everything. Now if you're using vb.net, you might have a bit of translating to do, but ive done it quite easily so you shouldnt have too much trouble either.

If you really can't do anything with the C# code, reply here and ill post a vb.net example.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum