Click here to Skip to main content
15,905,686 members
Please Sign up or sign in to vote.
1.00/5 (4 votes)
See more:
firstly am using dropdownlist for the location in login page
now,
i want to display all the location in page itself and after clicking on location it should ask for password
so should i use inputbox???
plz suggest...

tnx in advance!!!
Posted
Comments
Sandeep Mewara 5-May-11 2:54am    
Not clear on what you tried, stuck and asking help for!

Edit the question and add more details.
Legor 5-May-11 3:26am    
It's not clear what you want to achieve or tried to achieve this. Update your question to be more explainable.
J.Karthick 5-May-11 3:56am    
you just try to disable and Enable the Password textbox.

or

You use another form to get password...
Keith Barrow 5-May-11 6:46am    
This is really unclear. If you are writing a web page, please update the tags. For a web page please googe "HTML Password input", the second result will guide you. For winforms google "winforms password box"
Rajesh Anuhya 5-May-11 7:40am    
Not Clear

1 solution

protected void Page_Load(object sender, EventArgs e)
{
        DropDownList1.AutoPostBack = true;
        TextBox1.Enabled = false;
}
protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
{
       TextBox1.Enabled = true;
}
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900