Disabling auto-populating of form elements

Discussion in 'ASP .Net' started by Jason Galvin, Dec 10, 2003.

  1. Jason Galvin

    Jason Galvin Guest

    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.
     
    Jason Galvin, Dec 10, 2003
    #1
    1. Advertising

  2. Jason Galvin

    Teemu Keiski Guest

    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" <> wrote in message
    news:...
    > 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, Dec 10, 2003
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. linkswanted
    Replies:
    1
    Views:
    925
  2. Bill

    disabling form input elements

    Bill, Nov 2, 2003, in forum: Javascript
    Replies:
    1
    Views:
    105
    Lasse Reichstein Nielsen
    Nov 2, 2003
  3. Kevin Blount

    disabling form elements

    Kevin Blount, Dec 4, 2003, in forum: Javascript
    Replies:
    0
    Views:
    82
    Kevin Blount
    Dec 4, 2003
  4. omidmottaghi

    disabling form elements in IE

    omidmottaghi, Oct 28, 2005, in forum: Javascript
    Replies:
    4
    Views:
    91
    omidmottaghi
    Oct 30, 2005
  5. shankwheat

    Disabling Form Elements

    shankwheat, Oct 17, 2006, in forum: Javascript
    Replies:
    11
    Views:
    195
Loading...

Share This Page