RSS Forums RSS
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
Views: 2509 | Replies: 4
Reply
Join Date: Apr 2006
Posts: 9
Reputation: sidereal is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
sidereal sidereal is offline Offline
Newbie Poster

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

  #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???
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jan 2007
Posts: 2,640
Reputation: MidiMagic is on a distinguished road 
Rep Power: 7
Solved Threads: 118
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Posting Maven

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

  #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  
Join Date: Apr 2007
Location: Birmingham
Posts: 379
Reputation: Fungus1487 is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 38
Fungus1487's Avatar
Fungus1487 Fungus1487 is offline Offline
Posting Whiz

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

  #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  
Join Date: Apr 2006
Posts: 9
Reputation: sidereal is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
sidereal sidereal is offline Offline
Newbie Poster

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

  #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  
Join Date: Feb 2008
Posts: 1
Reputation: jitenR is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
jitenR jitenR is offline Offline
Newbie Poster

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

  #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  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 10:13 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC