Click here to Skip to main content
15,887,946 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Upload file to server Pin
Hiren solanki2-Dec-10 0:54
Hiren solanki2-Dec-10 0:54 
GeneralRe: Upload file to server Pin
priyagee2-Dec-10 0:59
priyagee2-Dec-10 0:59 
AnswerRe: Upload file to server Pin
Hiren solanki2-Dec-10 1:05
Hiren solanki2-Dec-10 1:05 
GeneralRe: Upload file to server Pin
priyagee2-Dec-10 1:22
priyagee2-Dec-10 1:22 
GeneralRe: Upload file to server Pin
T M Gray2-Dec-10 4:20
T M Gray2-Dec-10 4:20 
GeneralRe: Upload file to server Pin
Hiren solanki2-Dec-10 20:38
Hiren solanki2-Dec-10 20:38 
GeneralRe: Upload file to server Pin
priyagee2-Dec-10 20:59
priyagee2-Dec-10 20:59 
GeneralRe: Upload file to server Pin
Morgs Morgan2-Dec-10 21:12
Morgs Morgan2-Dec-10 21:12 
string fn = Path.GetFileName(inputFile.PostedFile.FileName);
string savepath = Server.MapPath("Exports") + "\\" + fn;//Exports is a folder where u will save all the posted files...
inputFile.PostedFile.SaveAs(savepath);//makes a copy of the file onto your server...
string[] lines = File.ReadAllLines(savepath);//will read all lines from a file

for (int i = 0; i < lines.Length; i++)//loop through all the lines in your file
{
  //do everything you want with the file contents
}
;

Hope that helps..
Later!
GeneralRe: Upload file to server Pin
priyagee2-Dec-10 21:22
priyagee2-Dec-10 21:22 
GeneralRe: Upload file to server Pin
Morgs Morgan2-Dec-10 21:43
Morgs Morgan2-Dec-10 21:43 
GeneralRe: Upload file to server Pin
priyagee2-Dec-10 22:58
priyagee2-Dec-10 22:58 
GeneralRe: Upload file to server Pin
Morgs Morgan3-Dec-10 0:18
Morgs Morgan3-Dec-10 0:18 
AnswerRe: Upload file to server Pin
PunkIsNotDead2-Dec-10 9:46
PunkIsNotDead2-Dec-10 9:46 
Questionjavascript parsing Pin
C#Coudou1-Dec-10 21:15
C#Coudou1-Dec-10 21:15 
Answer[Cross post warning] Pin
thatraja1-Dec-10 21:27
professionalthatraja1-Dec-10 21:27 
GeneralRe: [Cross post warning] Pin
musefan1-Dec-10 22:47
musefan1-Dec-10 22:47 
GeneralRe: [Cross post warning] Pin
thatraja1-Dec-10 23:13
professionalthatraja1-Dec-10 23:13 
GeneralRe: [Cross post warning] Pin
Dalek Dave3-Dec-10 5:37
professionalDalek Dave3-Dec-10 5:37 
AnswerRe: javascript parsing Pin
Hiren solanki1-Dec-10 21:42
Hiren solanki1-Dec-10 21:42 
AnswerRe: javascript parsing [modified] Pin
musefan1-Dec-10 23:54
musefan1-Dec-10 23:54 
QuestionProblem Of Getting Image ID Through Javascript Pin
vishnukamath1-Dec-10 18:18
vishnukamath1-Dec-10 18:18 
AnswerRe: Problem Of Getting Image ID Through Javascript Pin
GlobX1-Dec-10 18:49
GlobX1-Dec-10 18:49 
Questioninsert query Pin
Ramkumar_S1-Dec-10 7:52
Ramkumar_S1-Dec-10 7:52 
AnswerRe: insert query Pin
David Mujica1-Dec-10 9:33
David Mujica1-Dec-10 9:33 
GeneralRe: insert query Pin
Ramkumar_S1-Dec-10 15:08
Ramkumar_S1-Dec-10 15:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.