CheckBox in asp.net mvc

Posted by Xulfee on Stack Overflow See other posts from Stack Overflow or by Xulfee
Published on 2010-05-13T12:04:18Z Indexed on 2010/05/13 12:14 UTC
Read the original article Hit count: 370

Filed under:
|
|
|

i have two options

One

<%= Html.CheckBox("postType", false, new { @id = item.int_PostTypeId.ToString() })%>

Second

<input type="checkbox"  name="postType" value="<%= item.int_PostTypeId.ToString() %>

1st question: what is differenct between these two method of check box declaration.

2nd question: and how can we get value of checked checkbox?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about asp.net-mvc