is this possible..?
-
here's the situation: is this possible to be done..? i have 2 dropdown list boxes (named A and B for easy reference).. in A, i have 3 items (nokia, samsung, motorola).. my intention is, when i select one of the items from A (nokia), i want the details to display at B (models: 8210, 8250.....). den when i select (samsung) from A, the display at B will be the models for samsung phones. can this be done..? what is the code that make this possible..? thanks for the help.. very much appreciated..:-D -DarkangeL-
-
here's the situation: is this possible to be done..? i have 2 dropdown list boxes (named A and B for easy reference).. in A, i have 3 items (nokia, samsung, motorola).. my intention is, when i select one of the items from A (nokia), i want the details to display at B (models: 8210, 8250.....). den when i select (samsung) from A, the display at B will be the models for samsung phones. can this be done..? what is the code that make this possible..? thanks for the help.. very much appreciated..:-D -DarkangeL-
Hi, From where you populate this values i mean do you have seperate table. Thanks Warm Regards Prakash-B
-
here's the situation: is this possible to be done..? i have 2 dropdown list boxes (named A and B for easy reference).. in A, i have 3 items (nokia, samsung, motorola).. my intention is, when i select one of the items from A (nokia), i want the details to display at B (models: 8210, 8250.....). den when i select (samsung) from A, the display at B will be the models for samsung phones. can this be done..? what is the code that make this possible..? thanks for the help.. very much appreciated..:-D -DarkangeL-
-
here's the situation: is this possible to be done..? i have 2 dropdown list boxes (named A and B for easy reference).. in A, i have 3 items (nokia, samsung, motorola).. my intention is, when i select one of the items from A (nokia), i want the details to display at B (models: 8210, 8250.....). den when i select (samsung) from A, the display at B will be the models for samsung phones. can this be done..? what is the code that make this possible..? thanks for the help.. very much appreciated..:-D -DarkangeL-
In page_Load DropDownList1.AutoPostBack = True If (Not Page.IsPostBack) Then DropDownList1.Items.Add("nokia") DropDownList1.Items.Add("samsung") DropDownList1.Items.Add("motorola") End If In DropDownList1_SelectedIndexChanged If (DropDownList1.SelectedIndex = 0) Then DropDownList2.Items.Clear() DropDownList2.Items.Add("6600") DropDownList2.Items.Add("1100") DropDownList2.Items.Add("2600") ElseIf (DropDownList1.SelectedIndex = 1) Then DropDownList2.Items.Clear() DropDownList2.Items.Add("S6600") DropDownList2.Items.Add("S1100") DropDownList2.Items.Add("S2600") Else DropDownList2.Items.Clear() DropDownList2.Items.Add("M6600") DropDownList2.Items.Add("M1100") DropDownList2.Items.Add("M2600") End If I think this is one of the way to do. rs_net
-
here's the situation: is this possible to be done..? i have 2 dropdown list boxes (named A and B for easy reference).. in A, i have 3 items (nokia, samsung, motorola).. my intention is, when i select one of the items from A (nokia), i want the details to display at B (models: 8210, 8250.....). den when i select (samsung) from A, the display at B will be the models for samsung phones. can this be done..? what is the code that make this possible..? thanks for the help.. very much appreciated..:-D -DarkangeL-
Set the AutoPostBack Property of the List A to True,Then you can see the magic...;) Sathiyaraj Ganesan
-
here's the situation: is this possible to be done..? i have 2 dropdown list boxes (named A and B for easy reference).. in A, i have 3 items (nokia, samsung, motorola).. my intention is, when i select one of the items from A (nokia), i want the details to display at B (models: 8210, 8250.....). den when i select (samsung) from A, the display at B will be the models for samsung phones. can this be done..? what is the code that make this possible..? thanks for the help.. very much appreciated..:-D -DarkangeL-
use SelectedIndexChanged event of the A dropdownlist to populate the data in B dropdownlist box. Regards R.Arockiapathinathan
-
Hi, From where you populate this values i mean do you have seperate table. Thanks Warm Regards Prakash-B
-
i can create individual tables for the 3 different items' (nokia, samsung, motorola) model number. like one table for nokia models, 2nd table for samsung, and 3rd table for motorola.. but is it possible to combine the 3 tables together..? -DarkangeL-
1.Add Nokia,Samsung,Motorola to List A manually. 2.Set Autopostback Property of List A to TRUE. 3.Double click List A,Then write the code for populating the corresponding value in List B from Table. Note: write the code on SelectedIndexChanged of List A. Sathiyaraj Ganesan
-
here's the situation: is this possible to be done..? i have 2 dropdown list boxes (named A and B for easy reference).. in A, i have 3 items (nokia, samsung, motorola).. my intention is, when i select one of the items from A (nokia), i want the details to display at B (models: 8210, 8250.....). den when i select (samsung) from A, the display at B will be the models for samsung phones. can this be done..? what is the code that make this possible..? thanks for the help.. very much appreciated..:-D -DarkangeL-
-
1.Add Nokia,Samsung,Motorola to List A manually. 2.Set Autopostback Property of List A to TRUE. 3.Double click List A,Then write the code for populating the corresponding value in List B from Table. Note: write the code on SelectedIndexChanged of List A. Sathiyaraj Ganesan
hmm.. what if for both List (A & B), i want to diplay options extracted from the database..? simplify what i meant: Items in A and B have to be taken from Database. can the steps mentioned still be done..? and, what are the codes to be written..? thanks for the help. -DarkangeL-
-
In page_Load DropDownList1.AutoPostBack = True If (Not Page.IsPostBack) Then DropDownList1.Items.Add("nokia") DropDownList1.Items.Add("samsung") DropDownList1.Items.Add("motorola") End If In DropDownList1_SelectedIndexChanged If (DropDownList1.SelectedIndex = 0) Then DropDownList2.Items.Clear() DropDownList2.Items.Add("6600") DropDownList2.Items.Add("1100") DropDownList2.Items.Add("2600") ElseIf (DropDownList1.SelectedIndex = 1) Then DropDownList2.Items.Clear() DropDownList2.Items.Add("S6600") DropDownList2.Items.Add("S1100") DropDownList2.Items.Add("S2600") Else DropDownList2.Items.Clear() DropDownList2.Items.Add("M6600") DropDownList2.Items.Add("M1100") DropDownList2.Items.Add("M2600") End If I think this is one of the way to do. rs_net
hey.. mind giving me the exact codes..? with all the brackets and semi-colon etc..? i tried to incorporate the codes you gave me.. but there are some errors.. by the way.. just to let you know, i am using c-Sharp.. sorry for any incovenience caused..:-O thanks for the attention to my query..:) very much appreciated.. -DarkangeL- ^using c-sharp^