Saturday, March 24, 2012

CascadingDropDown using SQL in VB example anyone?

I'm new to using the AjaxControlToolkit, and I'm finding lots of variations in the examples out there. I would like to use the CascadingDropDown control to populate a State, and Country drop down. I am using ASP 2.0, and I'm developing code using Visual Web Developer 2005 Express. The data files reside on a separate SQL 2000 server.

Does anyone have a good example out there? All of the tutorial videos either use an XML file for the data, or have tags that are no longer supported in the latest tool kit (like CascadingDropDownProperties).

I had the same problem with the Ajax Tab controls (lots of different versions), but figured that one out. Not finding much on the web.

Any help would be greatly appreciated.

Hi and welcome to the forums.

Have you checked this tutorial.http://www.asp.net/AJAX/AjaxControlToolkit/Samples/Walkthrough/CCDWithDB.aspx. Though this is in C#, it is very simple. Try to convert it yourself or else try this tool to convert from C# code to VBhttp://labs.developerfusion.co.uk/convert/csharp-to-vb.aspx. If you still have problems, then post it here and we will convert it.

All the best.


Yes, I've viewed that video. What would I have to change to make the example in this video point to SQL tables? Or, If I convert my Country table, and State table to one XML file, how would I handle countries with no states?

I would really like to find an example that uses the current Ajax Control Toolkit for ASP.Net 2.0 that uses SQL tables. In the meantime, I'll try and make the example work with my own XML Country/State data.

Thanks.

No comments:

Post a Comment