Hedayat Hoshmand

Hedayat Hoshmand

  • NA
  • 56
  • 4.5k

jquery popupForm function Onclick() tag <a/> dose not work

Mar 5 2018 10:16 AM
 
Hi, Everybody

I need to call a jquery popupform function inside the onclick event tag a using ASP.NET MVC, Every thing is looking fine but when I click on the btn add new the jquery popupform function dose not open and also the return json data dose not execute
Please have a look to my code and reply the missing error
Thanks
 
 
  1. @{  
  2.     ViewBag.Title = "Employee List";  
  3. }  
  4. class="mt-3">Employee List  
  5.   
  6. "btnclick" class="btn btn-primary mb-2 ml-2" style="color:white" onclick="Popupform('@Url.Action("AddOrEdit","Employee")')"class="fa fa-plus"> Add New  
  7. "TableEmployee" class="table table-striped table-bordered w-100" >   
  8.       
  9.           
  10.             Name  
  11.             Position  
  12.             Office  
  13.             Age  
  14.             Salary  
  15.           
  16.       
  17.   
  18.   
  19.   
  20.   
  21.   
  22. "https://cdn.datatables.net/1.10.16/css/dataTables.bootstrap4.min.css" rel="stylesheet" />  
  23. "https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" />  
  24.   
  25.   
  26.   
  27. @section scripts{  
  28.       
  29.      
  30.       
  31.       
  32.   
  33.   
  34.   
  35.   
  36.  }  
  37.   
  38.   
  39. // Controller  
  40. [HttpGet]  
  41.   public  ActionResult AddOrEdit(int id=0)  
  42.   {  
  43.       return View(new Employee_tb());  
  44.   }  

Answers (2)