473,320 Members | 2,117 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,320 software developers and data experts.

FileUpload component

Greetings,

How do I use FileUpload component to upload the file to a specify location
in web server?

For example, the file path is "c:\temp\uploadfile.doc,"

how to I get the file path?
FileUpload.Text (I'm using C#)?

how to I upload the file to web server 's "uploadfolder"?

Thanks
ascll
May 31 '07 #1
2 6483
Use the SaveAs method:
http://msdn2.microsoft.com/en-us/lib...ad.saveas.aspx

--
HTH,

Kevin Spencer
Microsoft MVP

Printing Components, Email Components,
FTP Client Classes, Enhanced Data Controls, much more.
DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net

"ascll" <as*********@REMOVEyahoo.comREMOVEwrote in message
news:ub**************@TK2MSFTNGP05.phx.gbl...
Greetings,

How do I use FileUpload component to upload the file to a specify location
in web server?

For example, the file path is "c:\temp\uploadfile.doc,"

how to I get the file path?
FileUpload.Text (I'm using C#)?

how to I upload the file to web server 's "uploadfolder"?

Thanks
ascll


May 31 '07 #2
ascll wrote:
Greetings,

How do I use FileUpload component to upload the file to a specify location
in web server?

For example, the file path is "c:\temp\uploadfile.doc,"

how to I get the file path?
FileUpload.Text (I'm using C#)?

how to I upload the file to web server 's "uploadfolder"?
See the example that is included with the documentation on this at
http://msdn2.microsoft.com/en-us/lib...ileupload.aspx.
--
Tom Porterfield
May 31 '07 #3

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

Similar topics

5
by: Uncle Ben | last post by:
How strong and reliable is the new ASP.NET 2.0 FileUpload control? By that, I mean is it reliable enough to accept 2-gigabyte file uploads per upload session? Also, is it possible or easy to...
2
by: Islamegy® | last post by:
I'm use FormView for editing a photo gallery... I add FileUpload control to upload images to the Gallery. I'm binding my Formview to objectdatasource i tried upload images onItemInserting &...
1
by: Marko Vuksanovic | last post by:
I am trying to implement an upload progress indicator using atlas, using the following workaround: http://forums.asp.net/thread/1321664.aspx This is the code in FileUpload.apsx file is as...
12
by: Phil Z. | last post by:
After migrating an ASP.NET 1.1 application to 2.0 we were getting "Cannot access a closed file" errors when uploading. I found a number of post on the subject and have since moved from using an...
1
by: E. Kwong | last post by:
Is it possible to obtain the file size at the moment when the file path/name populates the textbox portion of the FileUpload control? Thx
0
by: Christian Schlemmer | last post by:
If my code will run into the filesize-limit condition, the INSERT-statement will be executed. is there a way to avoid that? Protected Sub DetailsView1_RowInserting(ByVal sender As Object,...
8
by: bsm | last post by:
Hi, I want to Set asp:fileupload Filename at runtime. When I try to do, it shows "Readonly" error. Anyway to achieve this.
2
by: =?Utf-8?B?bXVzb3NkZXY=?= | last post by:
Hi guys This is a repost as I haven't managed to fix the problem yet. I really hope someone can help as I'm stuck. I have an asp:fileupload component on a page, and it's giving the following...
3
by: bharathreddy | last post by:
I am using updatepanel in my application and fileupload control...there is no way to customize the look and feel of the fileupload control so what i have done is kept an image on top of the browse...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.