Disabling auto-populating of form elements

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jason Galvin

    Disabling auto-populating of form elements

    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.
  • Teemu Keiski

    #2
    Re: Disabling auto-populating of form elements

    Hi,

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

    --
    Teemu Keiski
    MCP, Microsoft MVP (ASP.NET), AspInsiders member
    ASP.NET Forum Moderator, AspAlliance Columnist


    "Jason Galvin" <jgalvin@provid entfunding.com> wrote in message
    news:88a9edb6.0 312091617.3bcd1 417@posting.goo gle.com...[color=blue]
    > 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.[/color]


    Comment

    Working...