Re: Upload a text file thru webclient



On Jun 20, 5:28 pm, "Ignacio Machin \( .NET/ C# MVP \)" <machin TA
laceupsolutions.com> wrote:
Hi,

It seems fine to me , what problems are you getting?

"shantanu" <shantanuse...@xxxxxxxxx> wrote in message

news:1182339314.033968.322440@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx



Hi
i am trying to upload a txt file thru this code, but its not updating
the data. is this code fine.
Or can anybody please suggest me some other meathod to do the same.
its urgent please help

regards
shantanu

WebClient client = new WebClient();
client.Credentials = netCred;
client.Headers.Add("Content-Type","application/x-www-form-
urlencoded");
client.UploadFile("http://aww.ngn.bel.alcatel.be/prp/cgi-bin/secure/
ImportForm.cgi","POST",@"C:\PRP\PRPTemp.txt");- Hide quoted text -

- Show quoted text -

hi thanx for the reply
i am really confused it is giving no error
can there be any posibility of acess rights
the link has GUI with a file upload option ans a import button.
regards
shantanu

.