TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Michael
NA
20
0
Uploading Files
Jan 27 2008 8:31 PM
Hey I am trying to write a program that will upload a text file to my website and was fooling around with this code but was unable to get it to work. Is this possbile to do something like this in a C# project? When I looked around on google all i saw was C# via ASP.net to complete this task. But I am trying to go for a desktop program that will upload this text file. Any help on this matter would be greatly appricated.
WebClient Client = new WebClient();
NetworkCredential myCred = new NetworkCredential(
"username", "userpassword", "domain?");
Client.Credentials = myCred;
Client.UploadFile("website","POST", "c:\texttext.txt");
Reply
Answers (
1
)
Supporting multiple hosts within one ASP.NET application
javascript to refer runtime-created gridview