cascading dropdown using ajax and jquery

Posted by reddysankark-13471 under ASP.NET on 8/28/2012 | Points: 10 | Views : 2835 | Status : [Member] | Replies : 4
hi sir/madam,

i fresh in this coding
please coding for cascading dropdownlist for asp.net and c# through sql server 2005

sankarreddy


Responses

Posted by: Ranjeet_8 on: 8/28/2012 [Member] [MVP] Gold | Points: 25

Up
0
Down
Refer this url
http://www.codeproject.com/Articles/32725/Using-CascadingDropDown-with-a-Database
eg :

<ajaxToolkit:CascadingDropDown ID="CascadingDropDown1" runat="server"
TargetControlID="DropDownList2"
Category="Services"
PromptText="Please select a services"
LoadingText="[Loading services...]"
ServicePath="Service.asmx"
ServiceMethod="GetDropDownContent"
ParentControlID="DropDownList1"
SelectedValue="SomeValue" />

 

[System.Web.Services.WebMethod]
[System.Web.Script.Services.ScriptMethod]
public CascadingDropDownNameValue[] GetDropDownContent(
string knownCategoryValues, string category)
{
// your code here.....
}

[System.Web.Services.WebMethod]
[System.Web.Script.Services.ScriptMethod]
public CascadingDropDownNameValue[] GetDropDownContent(
string knownCategoryValues, string category, string contextKey


reddysankark-13471, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Srilu.Nayini577 on: 8/28/2012 [Member] Starter | Points: 25

Up
0
Down
Refer this urls,it might helps you,

http://www.mikesdotnetting.com/Article/97/Cascading-DropDownLists-with-jQuery-and-ASP.NET

http://mithunondotnet.wordpress.com/2010/09/08/cascading-dropdown-list-using-jquery-ajax-and-sql-server-in-asp-net/

http://www.aspdotnet-suresh.com/2011/01/introduction-here-i-will-explain-how-to.html


Thank you,

SRILATHA
.Net Developer

reddysankark-13471, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Shameer.Ali87 on: 8/28/2012 [Member] Starter | Points: 25

Up
0
Down

Just Follw the links provided by Srilu.Nayini577 (SRILATHA),
those links are more than enough...

shameer ali shaik

reddysankark-13471, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response