Click to See Complete Forum and Search --> : Retain value in HtmlInputFile Control after post back


sowsan
December 18th, 2006, 12:36 AM
Hi,

We are developing as ASP.NET application where we are using HtmlInputfile control for browsing files.
After server-side validations,we are not able to retain the values in this control.
Can anyone suggest as to how to retain values in this control after post back?

Regards,
Sowmya

karim_medusa
December 18th, 2006, 01:08 AM
Hi

use Page.Context Collection to store value of HtmlInputFile Control
and after Post back you can restore it from Context Collection to Control