all groups > asp.net building controls > january 2007 >
You're in the

asp.net building controls

group:

AutoComplete in ASP:TextBox control in ASP.NET 1.1


AutoComplete in ASP:TextBox control in ASP.NET 1.1 rbg.net NO[at]SPAM gmail.com
1/17/2007 3:03:25 PM
asp.net building controls: I know that there is a autocomplete property for the HTML "INPUT
type=text" control which if set to OFF, disables autocomplete of the
input textbox (doesn't remember previously entered values)

However there is no such corresponding property for the TEXTBOX ASP.NET
Webcontrol in ASP.NET 1.1.

I know that there is a AutoComplete Property in the TEXTBOX ASP.NET
WebControl in ASP.NET 2.0.
Thus I can use AutoComplete.Disabled property in ASP.NET 2.0 to disable
autocompletion of textbox.

My question is how I can disable autocomplete for TEXTBOX ASP.NET
Webcontrol in ASP.NET 1.1??

TIA
Re: AutoComplete in ASP:TextBox control in ASP.NET 1.1 Mark Fitzpatrick
1/17/2007 5:34:39 PM
You can use the Attributes.Add() method of a control to write the proper
attribute, such as Attributes.Add("Autocomplete","Off"). I believe that's
the syntax but I haven't tried to turn off the autocomplete in code before.


--

Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006


[quoted text, click to view]

AddThis Social Bookmark Button