Disabling auto-populating of form elements

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.
 
T

Teemu Keiski

Hi,

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top