View Single Post
  #7 (permalink)  
Old July 30th, 2010, 01:35 AM
mashype mashype is offline
Authorized User
Join Date: Jan 2009
Posts: 25
Thanks: 3
Thanked 1 Time in 1 Post

Well I have tried to use the template for make model and color and just work it backward, but I am still getting an error. I basicallly copied to code and the asp pages but I can post if necessage. I am getting the following error:

Compiler Error Message: CS0246: The type or namespace name 'CarsTableAdapters' could not be found (are you missing a using directive or an assembly reference?)

Can anyone tell me where this needs to be loaded?

publicCascadingDropDownNameValue[] GetMakes(
string knownCategoryValues,
string category)
CarsTableAdapters.MakeTableAdapter makeAdapter =
new CarsTableAdapters.MakeTableAdapter();
Cars.MakeDataTable makes = makeAdapter.GetMakes();
List<CascadingDropDownNameValue> values =
foreach (DataRow dr in makes)
string make = (string)dr["Make"];
int makeId = (int)dr["MakeID"];
make, makeId.ToString()));
return values.ToArray();