TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
amShekar
NA
39
61.9k
How to bind selected checkbox model prperties to MVC Model
Feb 27 2014 1:30 PM
I have a model class which is having several list properties among list properties , I am displaying one list in the multi selection checkbox .
How to bind selected checkbox properties to model on selection of checkbox on post method.
ex
public class Gadgets
{
public int Id {get;set;}
public List<Mobiles> {get;set;}
public List< Product> {get;set;}
}
public class Product
{
public int productId {get;set;}
public string productName {get;set;}
public string productDescription{get;set:}
}
In my view
<input type="checkbox" /><label>@Model.ProductName </label>
When user clicks on checkbox how to post selected product name descriptio and name to Gadget model
Reply
Answers (
0
)
WPF guide/tutorial
How to write a code for Add Counting? ..