I'm starting to use the toolkit and the first control I'm working on is the cascading dropdown list. I'm messing with the web service right now. The example uses an xmldocument for the source of the data. My data is already being returned in the form of a list. Can I make that work or do I have to turn my data into an xmldocument? Hopefully not.
Thanks for the help
Hi,Yes, you can make this work. All you really need to do is implement a web method that returns an array of CascadingDropDownNameValue objects. Check outhttp://ajax.asp.net/ajaxtoolkit/Walkthrough/CCDWithDB.aspx for an example. Just map your list of items to CascadingDRopDownNameValue objects and you should be good.
Thanks,
Ted
No comments:
Post a Comment