mohaammed talha

mohaammed talha

  • 1.7k
  • 228
  • 4.3k

Javascript not working after publish to IIS

May 21 2021 2:51 AM
Javascript Working in localhost after publishing in iis server not working
 
  1. <script type="text/jscript">  
  2. $("#btnSearch").click(function () {  
  3. $('input[type=checkbox]').each(function () {  
  4. if (this.checked) {  
  5. var status = $('.IsCheck').val();  
  6. var cat = $('.ddlCategory').val();  
  7. var EmplId = $('.ddlEmployee').val();  
  8. var TeamID = $('.TeamId').val();  
  9. var TeamLeadId = '@Session["EmployeeCode"]';  
  10. alert(TeamLeadId);  
  11. var Months = $('.Month').val();  
  12. var Year = $('.Year').val();  
  13. var cateID = $('.CateID').val();  
  14. //$.get("/Assesmentmodel/Assesmentpart/", { CategoryID: cat, EmployeeID: EmplId, TeamLeadID: TeamLeadId, TeamID: TeamID,status:status }, function (data) {  
  15. $.get("/Assesmentmodel/Assesmentpart/", { Months: Months, EmployeeID: EmplId, TeamID: TeamID,TeamLeadID: TeamLeadId, status: status, cateID:cateID,Year:Year }, function (data) {  
  16. $("#AssesmentID").html(data);  
  17. });  
  18. }  
  19. });  
  20. });  
  21. </script>  

Answers (8)