Skip to content
Loading
    
  • }   
  •  OR
     
    Other way is to call method by ajax:
     
    1. $.ajax({  
    2.         url: '/Employee/SearchRecord',  
    3.         data: { txtSearch: $('#txtSearch').val(),searchBy:$('#searchBy').val()},  
    4.         type: "post",  
    5.         success: function (response) {  
    6.            
    7.         // do whatever you want  
    8.         }  
    9.     });  
     
    +1
  • 0
    Hello
     
    I think you need to generate ViewModel class for pass "searchby" & "txtsearch" data 
     
    Otherwise, best option uses jquery ajax method.
    0