Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 25th, 2006, 11:20 AM
Authorized User
 
Join Date: Jul 2006
Posts: 22
Thanks: 1
Thanked 0 Times in 0 Posts
Default Saving Form Data

I have 1 textbox of many in a form that I do not want IE, Firefox, etc. saving the previously entered form data. Is there a way to do this with my VB.NET app, is is an HTML thing, JavaScript, what? Google es no my friend right now.
 
Old July 25th, 2006, 11:43 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Use a regular HTML control as opposed to an HTML server control, viewstate will not be carried over in a plain HTML control.

"The one language all programmers understand is profanity."
 
Old July 25th, 2006, 11:47 AM
Authorized User
 
Join Date: Jul 2006
Posts: 22
Thanks: 1
Thanked 0 Times in 0 Posts
Default

The issue is not viewstate, it's in IE/Firefox storing the data in the field. For example, every time I type "5" in the credit card field, every other mastercard I entered previously is now in the list of saved form data that appears.

 
Old July 25th, 2006, 12:28 PM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Oh your talking about the Auto-Complete Functions. I know how to disable the function for individual PC's but not how to force it so that that field cannot be saved in a browser. Try searching google on how to disable that feature in code.

"The one language all programmers understand is profanity."
 
Old July 25th, 2006, 12:31 PM
Registered User
 
Join Date: Jul 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Try turning AUTOCOMPLETE="OFF"....U need to add this to ur <Form> tag...So it shud be something like this

<Form AUTOCOMPLETE="OFF" method="" action="" id="">
~~~~~~~~~
~~~~~~~~~
</Form>


Defeat is not when you fall down,But,when you refuse to get up
 
Old July 25th, 2006, 01:10 PM
Authorized User
 
Join Date: Jul 2006
Posts: 22
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Awesome, thanks! Also, thanks for the "auto-complete" term. I've been trying to figure out what the heck that was called all morning, and it wasn't coming to me.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Saving Form Contents Borhani Excel VBA 2 January 20th, 2008 12:55 PM
Saving data using form misskaos Classic ASP Basics 3 October 27th, 2006 03:16 PM
Saving data to a table through form input misskaos Classic ASP Basics 16 October 2nd, 2006 11:54 AM
Close form without saving cqprod27 Access VBA 8 June 4th, 2004 08:14 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.