Home All Groups Group Topic Archive Search About
Author
13 Feb 2006 2:49 PM
Seok Bee
Dear Experts,

May I ask, how can I remain the selected file that has been chosen through
the Browse button in the Fileupload control in asp.net after a postback?
Current, when the postback is true, the value/selected file in the fileupload
is being initialized.

Please help.

Many thanks in advance.

Regards,
SB

Author
13 Feb 2006 11:38 PM
Steve C. Orr
This is a security feature of the file upload control that cannot be altered.
The filename is not retained between postbacks.  It may be possible to get
around this with client side code, but I'm not sure I'd recommend that since
you'd be overriding carefully thought out security precautions.

--
I hope this helps,
Steve C. Orr
MCSD, MVP
http://Steve.Orr.net



Show quoteHide quote
"Seok Bee" wrote:

> Dear Experts,
>
> May I ask, how can I remain the selected file that has been chosen through
> the Browse button in the Fileupload control in asp.net after a postback?
> Current, when the postback is true, the value/selected file in the fileupload
> is being initialized.
>
> Please help.
>
> Many thanks in advance.
>
> Regards,
> SB