Hey, can anybody tell me how to call web service in AJAX. I have a web service for city, my requirement is if I select country name from droapdown A then corresponding city should bind on dropdown B through AJAX. Thanks in advance!
Simply put, if you want to evade postbacks: Add a script manager to the page, write some JavaScript which responds to the event that your selected index changed and makes the call, then retrieve the values and populate your city dropdown through JavaScript.You can use postbacks if you want and bind the dropdowns in OnInit. I d wrap the dropdown with an UpdatePanel to make it look like it s not a postback.