943,832 Members | Top Members by Rank

Ad:
Apr 23rd, 2007
0

How to change a textbox to a dropdown with Drop Down Menu

Expand Post »
Hi all,

I have a dropdown and a textbox and I want to be able to change the textbox to a dropdown control, after a certain value in the dropdown is selected.
I have a problem in changing the controls from textbox to dropdown.


Any help???
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
sidereal is offline Offline
9 posts
since Apr 2006
Apr 24th, 2007
0

Re: How to change a textbox to a dropdown with Drop Down Menu

Load a new page which looks similar, but has the dropdown instead of the textbox.
Reputation Points: 730
Solved Threads: 181
Nearly a Senior Poster
MidiMagic is offline Offline
3,314 posts
since Jan 2007
Apr 27th, 2007
0

Re: How to change a textbox to a dropdown with Drop Down Menu

Click to Expand / Collapse  Quote originally posted by sidereal ...
Hi all,

I have a dropdown and a textbox and I want to be able to change the textbox to a dropdown control, after a certain value in the dropdown is selected.
I have a problem in changing the controls from textbox to dropdown.


Any help???
ok this could be a long winded approach to what your after, why not use Javascript to create a Hidden ComboBox Which when the user selects your special choice in the main ComboBox will hide the current text box and show the Hidden ComboBox and vice versa when the result isnt selected. There are alot of tutorials out there that show the basics of this.
Reputation Points: 66
Solved Threads: 56
Posting Pro in Training
Fungus1487 is offline Offline
459 posts
since Apr 2007
May 13th, 2007
0

Re: How to change a textbox to a dropdown with Drop Down Menu

Thanks a lot for the suggestions. I figured that the easiest way will be having two controls and switching between the textbox and the dropdown. Meanwhile hiding the other and vice versa.
It was a pretty simple javascript!

Thanks !
Reputation Points: 10
Solved Threads: 0
Newbie Poster
sidereal is offline Offline
9 posts
since Apr 2006
Feb 8th, 2008
0

Re: How to change a textbox to a dropdown with Drop Down Menu

Click to Expand / Collapse  Quote originally posted by sidereal ...
Hi all,

I have a dropdown and a textbox and I want to be able to change the textbox to a dropdown control, after a certain value in the dropdown is selected.
I have a problem in changing the controls from textbox to dropdown.


Any help???
Hi
tyr this one
TextBox1.TextMode = TextBoxMode.MultiLine;
this change the mode of the textbox to multi line
it's show like drop down list

let me know this is u needed
Reputation Points: 10
Solved Threads: 0
Newbie Poster
jitenR is offline Offline
1 posts
since Feb 2008
Oct 20th, 2010
0
Re: How to change a textbox to a dropdown with Drop Down Menu
Click to Expand / Collapse  Quote originally posted by sidereal ...
Thanks a lot for the suggestions. I figured that the easiest way will be having two controls and switching between the textbox and the dropdown. Meanwhile hiding the other and vice versa.
It was a pretty simple javascript!

Thanks !
Could you please provide the javascript for this solution. Thanks.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
venkythaniks is offline Offline
1 posts
since Oct 2010

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in HTML and CSS Forum Timeline: How to add a cookie to contact form
Next Thread in HTML and CSS Forum Timeline: Page is loading well in IE, Chrome, Safari ... not Firefox





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC