Save and display CheckBox values from database in ASP.Net MVC

Last Reply 7 months ago By pandeyism

Posted 7 months ago


I want two checkboxes that has to be save in database and retrieved back in page.

STUDENTID      IS_ACTIVE                    IS_PROMOTED
A001 1 0

1 => true
0 => false

my columns is_active and ispromoted will be displayed in the page if check box is selected entry need to be given for database. and if selected if i chooseA001 from page automatically checkbox value should be loaded.

Right now no code has been designed since I have no idea of how to start.