Click here to Skip to main content
15,897,187 members
Home / Discussions / C#
   

C#

 
GeneralRe: SetItemData Pin
Luis Alonso Ramos31-Oct-04 12:31
Luis Alonso Ramos31-Oct-04 12:31 
GeneralRe: SetItemData Pin
bouli31-Oct-04 23:54
bouli31-Oct-04 23:54 
General.xml to .doc,.html,.rtf Pin
makakiu31-Oct-04 5:36
makakiu31-Oct-04 5:36 
GeneralRe: .xml to .doc,.html,.rtf Pin
Christian Graus31-Oct-04 8:26
protectorChristian Graus31-Oct-04 8:26 
QuestionWhat's the problem? Pin
momer31-Oct-04 5:15
momer31-Oct-04 5:15 
AnswerRe: What's the problem? Pin
Stefan Troschuetz31-Oct-04 7:00
Stefan Troschuetz31-Oct-04 7:00 
GeneralRe: What's the problem? Pin
momer31-Oct-04 7:25
momer31-Oct-04 7:25 
GeneralUploade file to server problem! Pin
QzRz31-Oct-04 4:58
QzRz31-Oct-04 4:58 
Hi...

I have made an xml document, and uploaded it to a server...
my problem is how to uploade it again after i downloaded it..!

When i download it i do this... (not sure this is the best way to do it)

string path = @"http://www.whatever.com/web/MyFile.xml";
WebClient DLoad = new WebClient();
DLoad.DownloadFile(path, "MyFile.xml");

that works fine...!


But then when i want to uploade the file..
I have no idea how to do however i tried this...

WebClient ULoad = new WebClient();
string path = @"http://www.whatever.com/web/MyFile(1).xml";
ULoad.UploadFile(path, "MyFile.xml");

But it throws an "'System.Net.WebException' occurred in system.dll -
Additional information: The remote server returned an error: (405) Method Not Allowed."

I have no idea what to do now....
Need a way to upload the file to the server.... or to write to the xml that already is on the sever...!

Can anyone help me please...?

Thanks....!


QzRz
Generalbound control looses changes after leaving panel Pin
Peter Kiesel31-Oct-04 3:25
Peter Kiesel31-Oct-04 3:25 
GeneralOverflow exception Pin
Ahmed Galal31-Oct-04 1:26
Ahmed Galal31-Oct-04 1:26 
GeneralRe: Overflow exception, a question Pin
yoaz31-Oct-04 2:20
yoaz31-Oct-04 2:20 
GeneralRe: Overflow exception, a question Pin
Ahmed Galal31-Oct-04 21:49
Ahmed Galal31-Oct-04 21:49 
GeneralDataSet - scalability Pin
devvvy30-Oct-04 23:14
devvvy30-Oct-04 23:14 
GeneralRe: DataSet - scalability Pin
Alex Korchemniy31-Oct-04 9:40
Alex Korchemniy31-Oct-04 9:40 
GeneralRe: DataSet - scalability Pin
devvvy31-Oct-04 16:49
devvvy31-Oct-04 16:49 
GeneralStreet level mapping Pin
parrot12330-Oct-04 20:48
parrot12330-Oct-04 20:48 
GeneralRe: Street level mapping Pin
Colin Angus Mackay31-Oct-04 2:00
Colin Angus Mackay31-Oct-04 2:00 
GeneralApplication.EnableVisualStyles and Toolbar icons Pin
steve_rm30-Oct-04 20:08
steve_rm30-Oct-04 20:08 
GeneralRetriving Text Pin
abdo12345678930-Oct-04 11:20
abdo12345678930-Oct-04 11:20 
GeneralExecuting a file from an interface Pin
Kiran Satish30-Oct-04 11:05
Kiran Satish30-Oct-04 11:05 
GeneralRe: Executing a file from an interface Pin
Alex Korchemniy30-Oct-04 13:41
Alex Korchemniy30-Oct-04 13:41 
GeneralRe: Executing a file from an interface Pin
Kiran Satish31-Oct-04 7:13
Kiran Satish31-Oct-04 7:13 
GeneralRe: Executing a file from an interface Pin
Alex Korchemniy31-Oct-04 9:23
Alex Korchemniy31-Oct-04 9:23 
GeneralRe: Executing a file from an interface Pin
Kiran Satish31-Oct-04 9:49
Kiran Satish31-Oct-04 9:49 
GeneralNeed idea for a neural network... Pin
tom_dx30-Oct-04 10:52
tom_dx30-Oct-04 10:52 

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.