View Single Post
  #3 (permalink)  
Old July 27th, 2010, 12:09 PM
Imar's Avatar
Imar Imar is offline
Wrox Author
Points: 72,035, Level: 100
Points: 72,035, Level: 100 Points: 72,035, Level: 100 Points: 72,035, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,079
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

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: http://www.asp.net/ajax/ajaxcontrolt...CCDWithDB.aspx

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
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!