public List<SelectListItem> GetCardTypes(string defaultValue) { if (defaultValue =="FPS") { items.Add(new SelectListItem { Text ="scft/min" Value ="scft/min"}); } else { items.Add(new SelectListItem { Text = "Nm/hr", Value ="Nm/hr" }); } return items; }
<script type="text/javascript"> $(function () { $("#DDUnit").change(function (evt) { var DropDownSelectedVal = $("#DDUnit :selected").val(); if (DropDownSelectedVal !=null) { $.ajax({ url:"abc/GetCardTypes", type: 'POST', data: { "ParameterYouWantToPass" : DropDownSelectedVal }, success: function (response) { } }); } }); }); </script>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)