By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,890 Members | 1,124 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,890 IT Pros & Developers. It's quick & easy.

Upload file programmatically

P: n/a
Hi,
I want to upload a csv file to my website via a windows form by click a
button. Can anyone provide an example on how to do that? Do I have to code
on the server side as well?

Thanks
Shen
Nov 21 '05 #1
Share this Question
Share on Google+
7 Replies


P: n/a
Here's the FTP way:

http://support.microsoft.com/default...b;en-us;832679

or do you mean via HTTP?
Nov 21 '05 #2

P: n/a
"Shen" <sn********@hotmail.com> schrieb:
I want to upload a csv file to my website via a windows form by click a
button. Can anyone provide an example on how to do that? Do I have to code
on the server side as well?


If the server supports FTP, take a look here:

Accessing FTP servers in .NET applications
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=ftp&lang=en>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #3

P: n/a
If you wish to do it via FTP, yes. Personally, I used FTP Client Class
Library
http://www.gotdotnet.com/Community/U...A-F20EF90BB586,
and the web server also needs to be running a FTP server.

If you wish to do it via HTTP, then yes you can, but you need a web page on
the server.

Richard Rosenheim

"Shen" <sn********@hotmail.com> wrote in message
news:24n1e.802839$Xk.749944@pd7tw3no...
Hi,
I want to upload a csv file to my website via a windows form by click a
button. Can anyone provide an example on how to do that? Do I have to code
on the server side as well?

Thanks
Shen

Nov 21 '05 #4

P: n/a
Thanks, I'll give a try.

Shen

"Crouchie1998" <cr**********@discussions.microsoft.com> wrote in message
news:us**************@tk2msftngp13.phx.gbl...
Here's the FTP way:

http://support.microsoft.com/default...b;en-us;832679

or do you mean via HTTP?

Nov 21 '05 #5

P: n/a
Thanks, Is there a way via Http?
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:eP**************@TK2MSFTNGP15.phx.gbl...
"Shen" <sn********@hotmail.com> schrieb:
I want to upload a csv file to my website via a windows form by click a
button. Can anyone provide an example on how to do that? Do I have to
code on the server side as well?


If the server supports FTP, take a look here:

Accessing FTP servers in .NET applications
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=ftp&lang=en>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #6

P: n/a
Thanks, Richard.

Do you have an example of doing it via HTTP?

"Richard L Rosenheim" <ri*****@rlr.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
If you wish to do it via FTP, yes. Personally, I used FTP Client Class
Library
http://www.gotdotnet.com/Community/U...A-F20EF90BB586,
and the web server also needs to be running a FTP server.

If you wish to do it via HTTP, then yes you can, but you need a web page
on
the server.

Richard Rosenheim

"Shen" <sn********@hotmail.com> wrote in message
news:24n1e.802839$Xk.749944@pd7tw3no...
Hi,
I want to upload a csv file to my website via a windows form by click a
button. Can anyone provide an example on how to do that? Do I have to
code
on the server side as well?

Thanks
Shen


Nov 21 '05 #7

P: n/a
"Shen" <sn********@hotmail.com> schrieb:
Thanks, Is there a way via Http?


'WebClient.UploadFile'.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Nov 21 '05 #8

This discussion thread is closed

Replies have been disabled for this discussion.