Groups | Blog | Home
all groups > dotnet general > may 2004 >

dotnet general : about upload file


Vincent
5/9/2004 6:41:05 PM
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?

Vincent
5/9/2004 8:36:08 PM
Andy Gaskell
5/9/2004 9:51:28 PM
Check out this article on CodeProject:
http://www.codeproject.com/aspnet/fileupload.asp

[quoted text, click to view]
action), this control's value will lost. While other server control can
keep their value.
[quoted text, click to view]
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?)
[quoted text, click to view]

Andy Gaskell
5/9/2004 10:49:03 PM
On postback what is the value of Upload1.PostedFile ?

[quoted text, click to view]
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.

AddThis Social Bookmark Button