Link to home
Start Free TrialLog in
Avatar of pradapkumar
pradapkumar

asked on

Autocompletetype property for Username TextBox

Hi Experts,
I am having Login web form in asp.net. In that i am having user name textbox and password textbox. Now I am in need to know what will be the autocomplete type setting for username textbox. Please Help guys.
Avatar of Emad Gawai
Emad Gawai
Flag of United Arab Emirates image

Name : <input type="text" value="" name="name" autocomplete="off">

Password :<input type="password" value="" name="password" autocomplete="off">
and if you like to enable auto complete you can do so by setting it "on"
autocomplete = "on"
Avatar of Bob Learned
If you look at the help for AutoCompleteType, there is a pretty good explanation:

http://msdn2.microsoft.com/en-us/library/system.web.ui.webcontrols.textbox.autocompletetype.aspx 

Browsers support AutoComplete differently depending on the type of the <input> element.  That property is an enumerated set of type options to control how the TextBox performs auto-completion.

Bob
Avatar of pradapkumar
pradapkumar

ASKER

ok experts.

Now I want to know what will be the autocompletetype equivalent setting for username textbox.

which one : FirstName, LastName, DisplayName ???
i m not understading your question.
AutoCompleteType doesn't cover the username autocomplete.  That functionality can be achieved by the name of the <input> element.

Bob
I want  some more info on this <input> element's usage on username. Examples are appreciated.
Ok, the trick with that kind of request is finding the right Google expression (which I haven't found).

Here is something close (hope it helps):

input text field, no auto-fill please!!
http://www.codingforums.com/archive/index.php?t-53810.html

<Quote>Say l've got:
<input type="text" name="username" value="" size="10">

is there _anyway_ to prevent the text field from "auto-filling" itself</Quote>

Bob
dear learned one,

I don't want to "off" the auto complete setting. Instead of that I want it to display the login names in that autocomplete type setting of asp.net textbox.

what i want is the textbox should show the previously entered usernames in that textbox not only for my site. but for entire web.

for ex.

if a user tried to log in to his gmail account he will enter his username there. then after some other time he wish to log in into my web application that gmail username also should be displayed. So, that globally that texbox dipslays the usernames previously used by the user. thats all I want.
what should be the equivalent autocompletetype setting to achieve the above said functionality?

firstname or lastname or displayname?
ASKER CERTIFIED SOLUTION
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial