Monday, March 10, 2014

MVC CheckBoxFor value set from script

If we want to set value in CheckBoxFor value from script we can set value like this:

  function EditAccessPrevilige(AccessPrivilegeID, LoginID, EmployeeAccessPrivilege, PayrollPrivilege) {  
     $('#AccessPrivilegeInfo_LoginID').val(LoginID);  
     if (EmployeeAccessPrivilege == "True")  
       document.getElementById("AccessPrivilegeInfo_EmployeeAccessPrivilege").checked = true;  
     else  
       document.getElementById("AccessPrivilegeInfo_EmployeeAccessPrivilege").checked = false;  
     if (PayrollPrivilege == "True")  
       document.getElementById("AccessPrivilegeInfo_PayrollPrivilege").checked = true;  
     else  
       document.getElementById("AccessPrivilegeInfo_PayrollPrivilege").checked = false;  
     return false;  
   }  

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. http://www.microsoft.com/download...