ASP.NET (VB) Upload

  • Thread starter Thread starter gce
  • Start date Start date
G

gce

Hi,

I like to let users upload a file. I am using Visual Studio .NET ASP 2003
prof.
Am an old fashion VB6 programmer and new to this all. Please help.

<Gert>
 
hi,
You can use the FileField control from the HTML controls to upload the files.
Just follow these steps
1) Drag and drop a FileField control and add runat = server. so it should be
like
<INPUT type="file" id = "flUpl1" runat = server>
2)Now when you submit the form check if the upload control has any file
selected or not and if it has a file save it at the required path like
if not flUpl1.PostedFile.FileName is nothing then
flUpl1.PostedFile.SaveAs("path")..
thats all. in case you need further info check out
http://www.developer.com/net/asp/article.php/3097661
HTH
srini
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top