I want to upload a text file and get the data of that text file into a table of database . I m using Sql Server 2000 , and working in c#. kindly can you help me doing this and if possible can you give me the code for this
jawaad
0
Newbie Poster
Recommended Answers
Jump to PostUse Control called "Upload File" in Web-Based application (ASP.NET) then read uploaded file save its text into DB.
Jump to PostYou've the file in your hand, use File.ReadAllText("FilePathOnYourServer") which returns string, take it and using Insert statement your string'll be in your DB.
All 5 Replies
Ramy Mahrous
401
Postaholic
Featured Poster
jawaad
0
Newbie Poster
Ramy Mahrous
401
Postaholic
Featured Poster
jawaad
0
Newbie Poster
Jugortha
-1
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.