I have table containing data . In every row there is a checkbox plus a checkbox to select all checkbox at the headers.
Upon checking this checkboxes,corresponoding rows are to be deleted from database table.Plus,on chiecking the checkbox at the header,all rows will be deleted from the database table.How can i achieve this asp.net mvc.
I have table containing data . In every row there is a checkbox plus
Share
As always start with a model:
Then a controller:
And finally the
Index.aspxview:And the product editor template (
~/Views/Home/EditorTemplates/ProductViewModel.ascx):