Delete multiple Rows (Records) using CheckBox in ASP.NET CORE With JavaScript

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 ก.ย. 2024
  • To display a list of students with checkboxes for each record, as well as a checkbox to select all students, you can create a view model that contains a list of students and a boolean property to represent the selected state of the "select all" checkbox.
    So, when the user checks or unchecks a checkbox for a particular student, the value of the Selected property of that student will be updated accordingly. The Delete action method in the controller class can then retrieve the list of students from the view model, filter the selected students based on the value of their Selected property, and delete them from the database.

ความคิดเห็น • 2

  • @tesfayeyimer5360
    @tesfayeyimer5360 11 หลายเดือนก่อน

    Great Video thank you brother be continuous other video.

  • @ramyask3795
    @ramyask3795 ปีที่แล้ว

    Thank you brother😊