How to create checkbox list using mvc3.

Posted by Sampath1750 under ASP.NET on 3/28/2012 | Points: 10 | Views : 8399 | Status : [Member] | Replies : 3
How to create checkbox list using Linq to sql in mvc3. and how to save checked items in database.




Responses

Posted by: Mani5155 on: 4/10/2012 [Member] Starter | Points: 25

Up
0
Down
model.field only return one value at a time so you can add check box one by one only using @HTML.Checkbox or otherwise you can use ordinary HTML tag on submit using javascript or server script you can assign model value by getting checkbox value

Top Forums Authors
Sun, 23-Jul-2017 Authors
All Time Authors
Jayakumars
6020
Karthikanbarasan
3455
Oswaldlily
3300

Latest members | More ...


(Statistics delayed by 5 minutes)
Advertisements