Thursday, January 9, 2014

mvc razor show hide any id based on dropdown

Drop Down
 @Html.DropDownListFor(m => m.AttendenceBonus.BonusIn, new SelectList(Model.BonusInList, "Value", "Text", Model.AttendenceBonus.BonusIn), new { @class = "selectBoxRegular", onchange = "return GetBonusType(this);"})  

   function GetBonusType(ctrl) {  
     var x = $("#AttendenceBonus_BonusIn").val();  
     // hide any control by id  
       if (x == "Fixed") {  
      // Show any control by id  
       else {  

vfpoledeb.1 provider is not registered on the local machine

Have u Install VFP Ole DB Provider in your System ? If No then Please Install it from following link.