472,950 Members | 2,160 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,950 software developers and data experts.

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.
Nov 18 '05 #1
1 1767
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" <jg*****@providentfunding.com> wrote in message
news:88**************************@posting.google.c om...
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.

Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
by: Hal Robertson | last post by:
I have created a rather complicated series of html forms for a data entry wizard In my mozilla browser, every time I submit each form along the process, it asks me if I want to remember the...
0
by: FloydPW | last post by:
I am attmempting to enable/disable a device in C#. I am able to locate it and tell it to disable, but the device will not disable even upon reboot. I am hoping someone can lead me in the right...
4
by: Steve | last post by:
I have the MDI MFC application ported to .NET. Now this application include mixed managed/unmanaged code. The application displays progress dialog with the cancel button during lenghtly...
3
by: PB | last post by:
What is the rationalle for disabling JavaScript. AFAIK, the primary reason is for "security purposes" - but what specific kind of threats does the protect against? AND - is the disabling of...
4
by: Hugh Janus | last post by:
Hi all. I am using the ServiceController class to interface with a service on a Windows 2003 Server. However, I cannot work out how to disable the service or set it to manual. Starting it and...
12
by: Nalaka | last post by:
Hi, I suddenly started getting a lot of errors from html validation (some CSS) so I followed the following instructions to disable it. If you'd rather not have these types of HTML validation...
0
by: Untitled | last post by:
Using Ajax .NET (or javascript) to auto-refresh some pages causes the Session timeout to reset. In my application I have certain panels that i would like to update every 10 seconds or so, but i...
1
Ali Rizwan
by: Ali Rizwan | last post by:
Hi all, I want to disable auto restoration of windows. Suppose if i delete a file say explorer.exe after a while it will create again by windows. If i change any registery it will restore...
5
by: jehugaleahsa | last post by:
Hello: I am sure this question comes up a lot. I need to disable the controls on my Windows forms so that when the BindingSource is empty some the controls bound to it will be disabled. This...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.