AspdotnetCodes.com
Search
Articles
Books
Resources
Asp.Net News
Downloads
Free Tech Magazines
Asp.Net Web Hosting
Archives
Softwares
Newsletter
Suggest Us
Link to Us
Feeds Subscription
Articles
Questions & Answers
Tips & Tricks
 cascadingdropdowng control
Posted by chinna on  2/16/2012 12:45:01 PM Category: AJAX
Add to my favorites
Email to friend
hi,i used dotnet4.0,sqlserver2008
my error is

Cannot implicitly convert type 'AjaxControlToolkit.CascadingDropDownNameValue[]' to 'CascadingDropDownNameValue[]'
code is

[WebMethod]
[System.Web.Script.Services.ScriptMethod]
public static CascadingDropDownNameValue[] GetDropDownContentsPageMethod(string knownCategoryValues, string category)
{return new info().GetDropDownContents(knownCategoryValues, category);
}
can u help me plz

Post Your Reply Post New Question

 Viewer's Reply
cascadingdropdowng control
Answered By Yrui Kosenko on 3/5/2012 2:57:47 AM
No AjaxControlToolkit.CascadingDropDownNameValue[]

1. Add DataSet TA_1.GetData() for dropdownlist_1

2. Add DataSet TA_2.GetData(_Label) for dropdownlist_2

3. Add Label.Text == dropdownlist_1.SelectedValue.

4. Add in dropdownlist_2_DataBound()

{

int _Label = Convert.ToInt32(Label.Text);

DropDownList dropdownlist_2 = new DropDownList();

dropdownlist_2.DataSource =TA_.GetData(_Label);

dropdownlist_2.DataValueField = "id";

dropdownlist_2.DataTextField = "Text";

dropdownlist_2.DataBind();

}
 
Post Your Reply If you still have problem, post it again under this reply for better response.

 
Sponsored by
Take Advantage of Oracle's 2 Day DBA Course
Windows 8: 50 Questions and Answers You Need to Make a Decision (Normally $9.95)
Speech Technology Magazine