Re: Upload a text file thru webclient
- From: shantanu <shantanusenin@xxxxxxxxx>
- Date: Wed, 20 Jun 2007 07:20:20 -0700
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
.
- Follow-Ups:
- Re: Upload a text file thru webclient
- From: Marc Gravell
- Re: Upload a text file thru webclient
- References:
- Upload a text file thru webclient
- From: shantanu
- Re: Upload a text file thru webclient
- From: Ignacio Machin \( .NET/ C# MVP \)
- Upload a text file thru webclient
- Prev by Date: Re: Preventing an app from being launched more than once
- Next by Date: Error while creating friend assembly.
- Previous by thread: Re: Upload a text file thru webclient
- Next by thread: Re: Upload a text file thru webclient
- Index(es):