|
Display SubCategory By AJAX -- duynnh --
Hi All! I have categories and display as below in datalist or another(Display in label using for loop): Category 1 Category 2 Category 3 Category 4 Category 5 Category 6 Category 7 Category 8 Category 9 now i click Category 1 I want it Display as below Category 1 Category 2 Category 3 SubCategory 11 SubCategory 12 SubCategory 13 Category 4 Category 5 Category 6 Category 7 Category 8 Category 9 I want do it by AJAX.NET Pro, please give solutions. Thanks, Ragards, Duynnh |
|
-- Joseph Guadagno --
----- Original Message ----- From: "duynnh" To: "Ajax.NET Professional" Sent: Friday, July 07, 2006 7:21 PM Subject: Display SubCategory By AJAX You can go to my website for a sample that has this functionality (Sample5_Comboboxes.aspx) http://josephguadagno.net/ajax.aspx Joseph Guadagno http://josephguadagno.net Hi All! I have categories and display as below in datalist or another(Display in label using for loop): Category 1 Category 2 Category 3 Category 4 Category 5 Category 6 Category 7 Category 8 Category 9 now i click Category 1 I want it Display as below Category 1 Category 2 Category 3 SubCategory 11 SubCategory 12 SubCategory 13 Category 4 Category 5 Category 6 Category 7 Category 8 Category 9 I want do it by AJAX.NET Pro, please give solutions. Thanks, Ragards, Duynnh > |
|
-- Joseph Guadagno --
----- Original Message ----- From: "duynnh" To: "Ajax.NET Professional" Sent: Friday, July 07, 2006 7:21 PM Subject: Display SubCategory By AJAX I have a sample application on my website that accomplishes this. http://josephguadagno.net/ajax.aspx Joseph Guadagno http://josephguadagno.net Hi All! I have categories and display as below in datalist or another(Display in label using for loop): Category 1 Category 2 Category 3 Category 4 Category 5 Category 6 Category 7 Category 8 Category 9 now i click Category 1 I want it Display as below Category 1 Category 2 Category 3 SubCategory 11 SubCategory 12 SubCategory 13 Category 4 Category 5 Category 6 Category 7 Category 8 Category 9 I want do it by AJAX.NET Pro, please give solutions. Thanks, Ragards, Duynnh > |
|
-- duynnh --
Hello Joseph Guadagno ! I didn't find the application the same for Requirement I can't use Combobox I have categories and display as below in datalist or another(Display in label using for loop): Category 1 Category 2 Category 3 Category 4 Category 5 Category 6 Category 7 Category 8 Category 9 now I click Category 1 I want it Display as below Category 1 Category 2 Category 3 SubCategory 11 SubCategory 12 SubCategory 13 Category 4 Category 5 Category 6 Category 7 Category 8 Category 9 I want to do it by AJAX.NET Pro, please give solutions. Thanks, Ragards, Duynnh |
|
-- Zihotki --
If your subcategories wouldn't change frequently you may use just JS to show it. When you create a categories, add subcategories and set display style property to none ( smth.Attributes.Add("display", "none");) and on the client side on click show'em all : (document.getElementById('subcategoryID').style.display='inline';) and this is all you need. |