Click here to Skip to main content
15,921,250 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hey everyone,

I have a combobox which shows names of some existing members from which they can select their name.
But for a new User I have a button(btnUser) and on its click I want to show an empty text box in focus in place of combobox.

How is this possible?

Thanks
Amit
Posted
Updated 17-Oct-10 21:59pm
v3
Comments
Dalek Dave 18-Oct-10 3:59am    
Minor Edit for Readability.

You can use javascript & for this javascript is the best.
Example:

<asp:LinkButton ID="lbUploadOrThanks" runat="server" OnClientClick="return EnabledFalse()==true ? true : false;"></asp:LinkButton>

<div id="divComboBox">
//put here your combobox
</div>
<div id="divTextBox" style="display:none;">
//put here your textbox
</div>

Javascript:
var J = jQuery.noConflict();

function EnabledFalse() {
J("#divTextBox").show();
J("#divComboBox").hide();
return false;
}
 
Share this answer
 
v4
Just make the Combobox.Visible = False and TextBox.Visible = True on th click event.
 
Share this answer
 

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