473,507 Members | 11,134 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

about upload file

does .net provide any control to upload file? as I need to use the following control to upload fil
<input id="Upload1" type="file" name="Upload1" runat="server"
but when I post back to server(haven't save the form yet, but doing other action), this control's value will lost. While other server control can keep their value

(Or I need to use a variable to store it, and when load the page that containing this control, I need to get the value of the variable, then assign to the file control. But it is true that I need to use the old way as asp does to remember the file control's value?

Thank you for help.
Jul 21 '05 #1
3 1138
Check out this article on CodeProject:
http://www.codeproject.com/aspnet/fileupload.asp

"Vincent" <an*******@discussions.microsoft.com> wrote in message
news:2C**********************************@microsof t.com...
does .net provide any control to upload file? as I need to use the following control to upload file <input id="Upload1" type="file" name="Upload1" runat="server">
but when I post back to server(haven't save the form yet, but doing other action), this control's value will lost. While other server control can
keep their value.
(Or I need to use a variable to store it, and when load the page that containing this control, I need to get the value of the variable, then
assign to the file control. But it is true that I need to use the old way
as asp does to remember the file control's value?)
Thank you for help.

Jul 21 '05 #2
The contorl in this article's is what I'm using. But as the first post, it contains problem that the value of the contorl does not save at server automatically, so that I need to assign a variable to store it.
Jul 21 '05 #3
On postback what is the value of Upload1.PostedFile ?

"Vincent" <an*******@discussions.microsoft.com> wrote in message
news:B7**********************************@microsof t.com...
The contorl in this article's is what I'm using. But as the first post,

it contains problem that the value of the contorl does not save at server
automatically, so that I need to assign a variable to store it.
Jul 21 '05 #4

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

Similar topics

3
11737
by: dave | last post by:
Hello there, I am at my wit's end ! I have used the following script succesfully to upload an image to my web space. But what I really want to be able to do is to update an existing record in a...
6
2013
by: flamesrock | last post by:
ok, so to my knowledge, object oriented means splitting something into the simplest number of parts and going from there. But the question is- when is it enough? For example I have the following...
2
2443
by: Sean Dotson | last post by:
I have a form that passes variables to an asp file and then uploads a file. For some reason the request.form is not getting the info from the form. It's returning blanks. Any insight would be...
2
981
by: ToChina | last post by:
Hi, I have a simple web page which has a file upload section, where the user can select a file, hit the upload button, and then view details about the file, which appear underneath the upload...
1
2709
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
4737
by: SEMIH DEMIR | last post by:
Sitelerden birinde verilen yabancı kaynakli bir scriptti duzenledim yanlız birseyin içinden bir turlu cıkamadım işin aslı ilk defa persistin upload componentini kullanacam yanlız suanki haliyle...
1
2117
by: Marko Vuksanovic | last post by:
I used the following code for implementing a file upload progress indicator, using UpdateProgress Panel, though I have a problem that FileUpload.Has File always returns false. Any suggestions what...
9
20877
by: 8anos | last post by:
Hello, I am new at the community and newbie at programming :) As you may know rapidshare provides a perl script for linux, to upload files at their servers. You can find the original scripts at...
3
3074
by: vijaykumardahiya | last post by:
Hello To Every One, I want to know that when I upload the File like a image from html page Its not show on servlet page using appropriate logic. I read the FileUpload Home page.But I am still...
1
4860
by: chennaibala | last post by:
can any one send me mutiple image upload program and save the file name with extension in mysql table.we must cheak uploaded file type like bmp or any image file while uploading. i develop...
0
7223
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7110
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7314
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7030
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
7482
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...
1
5041
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...
0
4702
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
758
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.