Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asptoday_discuss thread: help


Message #1 by "purushottam" <purushottamk@i...> on Wed, 19 Dec 2001 12:35:08
i have 3 combo boxes in a form and all the three combo boxes are dynamic 

in nature i mean to say if in combo box first one value is select the 

values in other two comboboxes changes and if second combobox value is 

changed the third combo box value changes so how to change the combo box 

values in client side, in last combobox the values are coming from record 

set i.e  i am using table 

so how to change combobox values in client side

help me in this regard
Message #2 by howard@c... on Wed, 19 Dec 2001 19:12:59
You would have to make the page submit to itself and based on the value of 

the first combo-box...You would then select new values for combo-box 

2...And so on...



So you would submit the page to itself however many times you needed to re-

evaluate successive combo-boxes...



Your logic would look something like this...



<form action="mypage.asp"



If Len(Request.Form("comboBox1") > 0   ' You know its submitting to itself



   Do whatever you need to do to combo box2



End



If Len(Request.Form("comboBox2") > 0 ' Submit 2nd time



   Do whatever you need to combo3



End



And so on...Depending on the specific need...You could test for both being 

greater than 0 or test for specific value if need be...



I'm sure you could do with JavaScript but I don't know how...



Anyway...Hope this helps...



Howard




  Return to Index