hai,
how to bind the data to dropdownlist using json in Asp.net with out page refreshing when ever i am chnageing selection felids(dropdwwnlist)
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Jaganathan BantheswaranRank #170 · 14.1K reputationPosted Dec 22, 2013, 9:45 PM EST
You can do this by using jquery ajax.
Call the loadItems function whenever the option is changed.
function loadItems() {
$.getJSON("/your/url/togetlist", null, function (data) {
var selectList = $("#yourddl"); //gets your ddl
$.each(data, function (index, optionData) {
var option = $(').text(optionData.Text).val(optionData.Value);
selectList.add(option, null);
});
});
}
Jignesh TrivediRank #16 · 50.3K reputationPosted Dec 22, 2013, 10:15 PM EST
hi,
Please refer
http://surajdeshpande.wordpress.com/2013/09/28/fill-a-dropdownlist-using-jquery-in-asp-net/
http://ruchitech.blogspot.in/2012/06/bind-dropdown-list-using-jsonjquery-in.html
hope this will help you.