View Single Post
  #3 (permalink)  
Old July 27th, 2010, 12:09 PM
Imar's Avatar
Imar Imar is offline
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts

Hi there,

It's a bit hard to help you, as it's not really clear what you're trying to accomplish, how and what the problem is. The fact your code is so garbled doesn't make things any easier.

Can you post a more detailed description of the problem and what it is you;re trying to do? Also, can you repost your relevant code and then use the Remove Text Formatting button on the toolbar before you wrap the code in code tags (also on the toolbar). Because of a bug in this form, code pasted from Visual Studio gets messed up real bad.

It also seems you're missing code that returns second level content in the GetDropDownContents method. Right now, it just returns an empty default instance.
Finally have you looked the documentation for the CascadingDropDown control? It has a sample that uses a database:


Imar Spaanjaars
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!