here is my table struture. in SQL Server 2005
D (primary key, identity) ParentID OwnerID LanguageID WordPhrase
1 1 0 EN Restaurant
2 1 0 FR Restaurant
3 3 1 EN American
4 3 1 FR Américain
5 5 1 EN Italian
6 5 1 FR Italien
7 7 1 EN Greek
8 7 1 FR Grec
9 9 0 EN Mechanic
10 9 0 FR Mécanique
11 11 9 EN Sports Utility Vehicle
12 11 9 FR Véhicule Utilitaire Sportif
13 13 9 EN Cars
14 13 9 FR Automobile
I want to build a tree view with this data I want it to look like this: (subsitute - for the checkbox)
Categories
-Resturant
-American
-Italian
-Greek
-Mechanic
-Sports Utility Vehicle
-Cars
I also have a drop down list called ddlMax defined as:
ddlMax.DataSource = new string[] {"1","2","3","4","5","6" };
What I would like to have happen is:
1) build the tree view from the data in the database language independently (Ex. if session["lang"] = "en" then display all the english categories so on and so forth....)
2) Establish a check_changed (or something) on the tree view to count how many categories where selected and check that against the SelectedValue of ddlMax.
Thanks in advance for all your continued support!
Ghost
Start Free Trial