473,378 Members | 1,355 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,378 software developers and data experts.

Simple File Upload

Hi:

I'm a newby and I am writing a VB.NET Web application where I would like to
allow the users to upload a file from their computer to my web server. On
the server I have already determined the name that I will call the file. I
would like to provide them with a dialog box to select the file they will be
sending and have the transfer occur.

The examples I have found are all very compicated ASP.NET examples.

Is there an easy way to do this in VB.NET - perhaps a good and simple
example site that I can look at.

Thanks very much!

Fred
Nov 21 '05 #1
3 1092
Here's a simple one (page 3 has the full code listing):

http://www.developer.com/net/vb/article.php/3424121

Another easy one, but has an string error at the beginning, which all you
need to do is declare it as a string:

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

Another example (sort of):

http://www.developer.com/net/vb/article.php/3428901

Probably, the best of them all:

http://www.allapi.net/classlib/class.php?id=23
Nov 21 '05 #2
Found another incredibly easy FTP program for you written for the begginer:

http://www.planet-source-code.com/vb...1452&lngWId=10
Nov 21 '05 #3
Fred,

Assuming you are using a webpage it is very simple.

When you drag the HTML control "File Field" to your form you are almost half
way.
You have to read some information about it of course as well.

I hope this helps

Cor
Nov 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: TomR | last post by:
I can't find an answer to a seemingly simple question. I have three files: form.php: <form enctype="multipart/form-data" action="process.php" method="POST"> <input type="hidden"...
2
by: Dan Sharp | last post by:
Hi there, i'm trying to create just a simple upload - fill in a form with the article title, and description - and select a file - i need to upload that file to the webserver, and then rename...
5
by: Michael Gamaroff | last post by:
Hi My ASP page is completely ignoring the following bit of code stuck in the body of a page. I want to display a message if the submit button was pushed on the same page. <% If...
2
by: SU_Oran | last post by:
I found this when searching. I need to have a simple script that will upload a single file. It is giving me an error on Set upl = Server.CreateObject("ASPSimpleUpload.Upload") It is saying : ...
1
by: Chris | last post by:
Hi, how do I develop the following 'simple' program using ASP.NET webforms : a client has a text-file (aaa.txt) that has to be manipulated by code located on the server, the server would then...
13
by: Sky Sigal | last post by:
I have created an IHttpHandler that waits for uploads as attachments for a webmail interface, and saves it to a directory that is defined in config.xml. My question is the following: assuming...
2
by: Ed | last post by:
I'm rather new to ASP .Net, so I appologize in advance if I'm asking a dumb question here. I've been searching all over the place for an answer and haven't found a single one. I'm working on a...
0
by: Daniel Sélen Secches | last post by:
I found a good class to do a simple FTP. Very good.... I'm posting it with the message, i hope it helps someone ============================================================== Imports...
5
by: olaamussah | last post by:
Hi, i just started learning perl which i would use for my uni. project unfortunately. Well, this is a simple user login page i tried to create but i cant get it to work. Can someone please check this...
6
Jacotheron
by: Jacotheron | last post by:
I need a PHP script that can upload music files (mp3). The script is for a home project I have started a while ago. I have a MySQL database of all the music that I have. Other computers on the...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...

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.