473,402 Members | 2,050 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

Upload file programmatically

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
7 4626
Here's the FTP way:

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

or do you mean via HTTP?
Nov 21 '05 #2
"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
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
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
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
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
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: John Lee | last post by:
Hi, I have a simple web page that allow file to be uploaded, the upload page looks like the following: <form method="post" name="upload" enctype="multipart/form-data"...
3
by: Beatrice | last post by:
I am stuck with this problem and desperately need your help. I would like to upload an xml file or any file from client machine and then save it to the server machine. Since the file path on the...
8
by: Braky Wacky | last post by:
Hello, I have an ASP.NET webpage that uses an instance of System.Web.UI.HtmlControls.HtmlInputFile for uploading files to our server. I came across the documentation at MSDN for upping the...
5
by: George Durzi | last post by:
Anyone know of a good file upload control? I don't like using the built in one because it's unable to maintain state on a refresh. Thanks!
0
by: Raven Jones | last post by:
Heya all, I'm working on a web-based application (using ASP.NET and C# on .NET 1.1.4322, supporting only IE6 for Windows) that allows for file uploads. Screen real estate is at a premium, so I...
1
by: joshbeall | last post by:
Hi All, If I drop a form onto my page that allows file uploads, I know well enough how to handle the file upload in the server side via PHP. However, I have a question: when my browser...
0
by: HK | last post by:
I tried to upload my new table to a remote .mdb file. First I linked to the user's computer with MS Windows XP VPN. Next he shared his folder on our "network" and then I mapped his folder as a...
9
by: Steve Poe | last post by:
I work for an animal hospital trying to use PHP to store an animal's dental x-rays to a file server. I can browse for the xray on the local desktop computer then click "Upload Image". This...
2
by: Andy Fish | last post by:
Hi, I am trying to investigate a problem reported by one of my users who received a "System.Web.HttpException: Request timed out." error trying to upload a large file into my asp.net 2.0...
12
by: GuangXiN | last post by:
I want the file upload element disappear, instead of it, I place a text box and a button with my own css defination. but it doesn't work on IE7. What should I do now? <form action="upload.php"...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.