Question : ajax cascading drop down list

hi,

I have the code below but i am getting error
method error 400 in the drop down list

I have debugged into the webservice and checked values of value and seems to be displaying list of everything i need

please help

R8VI
Code Snippet:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
aspx page   
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %> 
    
    
    
Make:
Model:
Color:
webservice [WebMethod] public CascadingDropDownNameValue[] GetCarMakes() { List values = new List(); List GetManulist = new List(); DataSet dsAllManu = ManUtil.GetSet(true); int countDataset = dsAllManu .Tables["AllManufacturers"].Rows.Count; List GetManufromDB = new List(); for (int i = 0; i < countDataset; i++) { manuid = dsAllManu .Tables["AllManufacturers"].Rows[i]["manuid"].ToString(); Name = dsAllManu.Tables["AllManu"].Rows[i]["Name"].ToString(); GetManufromDB .Add(new Manu(manufacturerid, Name)); } GetManulist = GetManufromDB ; for (int i = 0; i < GetManulist .Count; i++) { values.Add(new CascadingDropDownNameValue(GetManulist[i].ManuName, GetManulist [i].ManuID.ToString())); } return values.ToArray(); }

Answer : ajax cascading drop down list

i think there is no problem in your code  check link below
there is same problem ask

http://forums.asp.net/p/1439096/3254070.aspx

and did like they did

Random Solutions  
 
programming4us programming4us