c# - Populating multiple dropdowns from single source and changing data dynamically -


i have table named employee. fetching data table 5 drop-downs fields empno, unit, location, onsite/offshore etc., when selecting value in of drop-downs values in drop-downs have change. can pls me how can acheive this??

server side solution

there selectedindexchanged event dropdown control. in event, need reset other dropdowns or reload other data.

client side solution (with jquery)

listen change event of first dropdown , clear other dropdown content in event.

$(function(){   $("#idoffirstdropdown").change(function(e){     $("#idofsecond").html("");   }); }); 

Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -

php - Accessing static methods using newly created $obj or using class Name -