Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ViewState not saving for FileUpload control

Status
Not open for further replies.

Nelviticus

Programmer
Sep 9, 2003
1,819
GB
Apologies if this is a silly question, I haven't done a lot of ASP.Net.

I have an ASP.Net/C# page with a FileUpload control plus a few other controls, some of which have to perform AutoPostBack. Even though the EnableViewState property for my FileUpload control is set to True its properties get reset whenever another control does PostBack - all the properties relating to the chosen file get set back to the defaults.

Is there something obvious that I've overlooked or am I misunderstanding what EnableViewState means? I thought it meant that the control would keep its state when the form does a PostBack.

Regards

Nelviticus
 
Ah, good point, sorry about that. Please consider this thread closed.

Nelviticus
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top