Click here to Skip to main content
15,888,579 members
Please Sign up or sign in to vote.
1.67/5 (2 votes)
I need some help with a .NET issue
I cant take the checkbox values using razor style in HTML with C#
This is my code and the form that i`m trying to cast the data:

'''''
HTML
TituloNegrita: @Html.CheckBox("txt_TituloNegrita")
''''
myStyle.TituloNegrita = Convert.ToBoolean(form["txt_TituloNegrita"].ToString());

Thanks ;)
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900