Hi,

Please help

Can we send data from View to controller without clicking a button or link, only trough Ajax script function? I want to update my table on onblur or onchange event of a view's table's column textbox

I am using an ajax script to implement this and I am trying to send the data directly to controller through the scriptAnd following is my code:

@foreach (var item in Model)
                        {
                          bool aprv = Convert.ToBoolean(item.Approved);
                          if (aprv)
                          {
                           var totp = item.Quantity * Convert.ToInt32(item.Price);
                         
                             
                             
                                  @Html.DisplayFor(modelItem => item.SKUMaster.Name)
                             
                             
                                  @Html.DisplayFor(modelItem => item.SKUMaster.PackagingType)
                             
                             
                                  @*@Html.DisplayFor(modelItem => item.Quantity)*@

                                  @Html.DisplayFor(modelItem => item.SKUMaster.Manufacturer)
                             
                             
                                  [email protected] onblur="onPriceChange()"/>
                             
                            
                                 
                            
                            
                                 
                            
                            
                                  @Html.DisplayFor(modelItem => item.SupplierMaster.SupplierName)
                            
                            
                                
                                
                                

                            
                      

                        }

                      }

Thanks in advance