We help IT Professionals succeed at work.

Autocompletetype property for Username TextBox

1,720 Views
Last Modified: 2012-05-05
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.
Comment
Watch Question

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

Password :<input type="password" value="" name="password" autocomplete="off">

Commented:
and if you like to enable auto complete you can do so by setting it "on"
autocomplete = "on"
CERTIFIED EXPERT
Most Valuable Expert 2012
Top Expert 2008

Commented:
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

Author

Commented:
ok experts.

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

which one : FirstName, LastName, DisplayName ???

Commented:
i m not understading your question.
CERTIFIED EXPERT
Most Valuable Expert 2012
Top Expert 2008

Commented:
AutoCompleteType doesn't cover the username autocomplete.  That functionality can be achieved by the name of the <input> element.

Bob

Author

Commented:
I want  some more info on this <input> element's usage on username. Examples are appreciated.
CERTIFIED EXPERT
Most Valuable Expert 2012
Top Expert 2008

Commented:
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

Author

Commented:
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.

Author

Commented:
what should be the equivalent autocompletetype setting to achieve the above said functionality?

firstname or lastname or displayname?
CERTIFIED EXPERT
Most Valuable Expert 2012
Top Expert 2008
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.