2009
Disable AutoComplete in Asp.NET
Fatal Error:get('adsPerSlot') in Admin Options don't exist (not an array)!Your ads will be inserted here by
Easy Ads Lite.
Please go to the plugin admin page to paste your ad code.
Most Browsers have a feature called AutoComplete which saves information that has previously been inputted like web addresses and form data. But sometimes, you may want to disable this feature for inputs like credit card information.
ASP.NET has the ability to override the user’s choice with the autocomplete attribute by setting it to off. This can be added to a form tag or any TextBox control and can be done using one of the following two properties:
- AutoComplete=”Off”
- AutoCompleteType=”Disabled”
View some examples after the break…
Below are some examples with AutoComplete=”Off”
- <form Runat=”server” AutoComplete=”Off”></form>
- <asp:TextBox ID=”txtCardNumber” runat=”server” AutoComplete=”Off” />
- at runtime: txtCardNumber.Attributes.Add( “AutoComplete”, “Off” );
Your ads will be inserted here by
Easy Ads Lite.
Please go to the plugin admin page to paste your ad code.
You can find more info here or here
And next some examples with AutoCompleteType=”Disabled”
- <form Runat=”server” AutoCompleteType=”Disabled”></form>
- <asp:TextBox ID=”txtCardNumber” runat=”server” AutoCompleteType=”Disabled”/>
- at runtime: txtCardNumber.Attributes.Add( “AutoCompleteType”, “Disabled”);
Your ads will be inserted here by
Easy Ads Lite.
Please go to the plugin admin page to paste your ad code.
4 Comments
Leave a comment
Recent Posts
Favourite Links
Tags
Archives
- May 2012
- February 2012
- December 2011
- October 2011
- September 2011
- April 2011
- March 2011
- February 2011
- January 2011
- December 2010
- November 2010
- October 2010
- September 2010
- August 2010
- June 2010
- May 2010
- April 2010
- March 2010
- July 2009
- June 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- September 2008
- August 2008
- June 2008
- May 2008
- March 2008
- February 2008
- November 2007
- September 2007
- July 2007
- June 2007
- May 2007
- February 2007
- January 2007
- November 2006
- October 2006
Categories
- Android
- Apple
- ASP.Net
- Blackberry OS
- CMS
- Creative Computing
- Crystal Reports
- Day to Day
- Deep Design Malta
- Design and Development
- Development Tools
- Games
- Google Analytics
- Google Gmail
- Internet Explorer
- iPhone/3G
- iPod Touch
- JavaScript
- JQuery
- Microsoft
- Microsoft SQL Server
- Microsoft Visual Studio
- MS Office
- My Blog
- NetBeans
- Off Topic
- Online Services
- Permissions
- Phones and Tablets Platforms
- Project NINE
- PSP NGP
- Quickie
- SEO
- Silverlight For WP7
- Sitefinity
- Sony
- Uncategorized
- Utilities
- VB .Net
- Windows 7
- Windows 8
- Windows Live
- Windows Mobile
- Windows Phone 7
- Windows Vista
- Wordpress
- WP Apps
- Yellow Pages




This is Awsome and Nice post for the cause of developers
Does this function exists on ASP 3.0?
gud work.. i really need this.
thankx
Thank’s
It is really helpfull……