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

Please support our HTML and CSS advertiser: 50% Off 6 Months Web Hosting from 1&1. The World's #1 Host!
Reply

Join Date: Apr 2006
Posts: 9
Reputation: sidereal is an unknown quantity at this point 
Solved Threads: 0
sidereal sidereal is offline Offline
Newbie Poster

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

 
0
  #1
Apr 23rd, 2007
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???
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 3,266
Reputation: MidiMagic has a spectacular aura about MidiMagic has a spectacular aura about 
Solved Threads: 170
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Nearly a Senior Poster

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

 
0
  #2
Apr 24th, 2007
Load a new page which looks similar, but has the dropdown instead of the textbox.
Daylight-saving time uses more gasoline
Reply With Quote Quick reply to this message  
Join Date: Apr 2007
Posts: 441
Reputation: Fungus1487 is on a distinguished road 
Solved Threads: 50
Fungus1487's Avatar
Fungus1487 Fungus1487 is offline Offline
Posting Pro in Training

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

 
0
  #3
Apr 27th, 2007
Originally Posted by sidereal View 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???
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.
When Autumn Falls [ http://www.whenautumnfalls.co.uk ] &&
Designdotworks [ http://www.designdotworks.co.uk ] Web / Graphic / Software Design
Reply With Quote Quick reply to this message  
Join Date: Apr 2006
Posts: 9
Reputation: sidereal is an unknown quantity at this point 
Solved Threads: 0
sidereal sidereal is offline Offline
Newbie Poster

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

 
0
  #4
May 13th, 2007
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 !
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 1
Reputation: jitenR is an unknown quantity at this point 
Solved Threads: 0
jitenR jitenR is offline Offline
Newbie Poster

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

 
0
  #5
Feb 8th, 2008
Originally Posted by sidereal View 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???
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
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 4859 | Replies: 4
Thread Tools Search this Thread



Tag cloud for HTML and CSS
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2010 DaniWeb® LLC