Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

199
Views
how to update field data using button? .net

guys. I'm a newbie in developing the web using .NET 6.0. So, I have a table in views that has a button. With that button, I want to update the enum field value in all records. Do you have any idea? Because when I'm trying using Ajax, I'm getting confused how to get the data.

<script>
    function Synchronize()
    {
    var invoice = $('#invoiceTable').DataTable();
    alert("Sync jalan");
    $.ajax(
        {
            type: "POST",
            url: '@Url.Action("Synchronize", "Tax")',
            data: { },
            error: function (result) {
            swal("Oops","There is a Problem, Try Again!","error", {
                icon : "error",
                buttons: {                  
                    confirm: {
                        className : 'btn btn-danger'
                    }
                },
            });
            },
            success: function (result) {
            console.log(result);
            if (result.status == true) {
                swal(result.message, {
                        icon : "success",
                        buttons: {                  
                            confirm: {
                                className : 'btn btn-success'
                            }
                        },
                    });
                window.location.href = '@Url.Action("DataInvoice", "Tax")';
            }
            else {
                swal(result.message, {
                        icon : "error",
                        buttons: {                  
                            confirm: {
                                className : 'btn btn-danger'
                            }
                        },
                    });
            }
            }
        });
    }

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!