Disabling auto-populating of form elements

  • Thread starter Thread starter Jason Galvin
  • Start date Start date
J

Jason Galvin

I would like to disable the auto-populating feature (remembers form
element text between post-backs) when creating a .NET form.

I have succeeded in disabling auto-populate by creating my controls
during PreRender, but that becomes highly cumbersome. Is there a way
to explicitly turn off auto-populate?

I'm pretty sure the form isn't getting auto-populated by the ViewState
mechanism, because I've specifically set EnableViewState to False on
the page and on each control.

Thanks.
 
Hi,

that's the workings of controls that use standard form post mechanism. You
need to clear them manually.
 
Back
Top