-----------------------------------------------------------
New Message on MumbaiUserGroup
-----------------------------------------------------------
From: Rohit_BD
Message 2 in Discussion
An "editable drop-down list" or a combo-box per se is not supported by any browser, at
least not by IE and Netscape. So having this type of control is not possible. However,
what could be done is to use a textbox along with a drop-down list and add the
contents of the textbox to the drop-down when the TextChanged event of the textbox
fires. Here's how: Technique 1: Using client-side code (note that asp.net controls
can also be used here) <script> function addToCombo(val, obj) { if(val.length > 0)
{ obj.options.add(new Option(val)); } } </script> <input type=text
name="txtCombo" onchange="addToCombo(this.value, this.form.selCombo)"><br> <select
name="selCombo"></select> Technique 2: Using code-behind (C#) <asp:TextBox
id="txtCombo" runat="Server"/><br> <asp:dropdownlist id="selCombo" runat="Server"/>
code behind: private void txtCombo_TextChanged(...) {
if(txtCombo.Text.Trim().Length > 0) { selCombo.Items.Add(new
ListItem(txtCombo.Text)); } }
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/mumbaiusergroup/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you received
this message by mistake, please click the "Remove" link below. On the pre-addressed
e-mail message that opens, simply click "Send". Your e-mail address will be deleted
from this group's mailing list.
mailto:[EMAIL PROTECTED]