开发者

HTMLHelper RadioButton

开发者 https://www.devze.com 2023-01-14 20:27 出处:网络
I\'m new in .net Family and i\'ve been looking asp.net webpage and following the MVC tutorials the p开发者_如何学运维roblem is

I'm new in .net Family and i've been looking asp.net webpage and following the MVC tutorials

the p开发者_如何学运维roblem is

I'm using LinQ to Sql (2005) model and C# and i need to put a radioButton to know if a date must be initialized or not

how do i do this using html helpers ??


You should provide more information on what are you doing. Assuming that you want to post some form with some input values with one of them a radioButton, you should have id for the radiobutton and in the action that processes output of this form just add something like

bool dateNeedsInit = form["dateInit"].Equals("true");

For more information on radiobutton see e.g. this link.

0

精彩评论

暂无评论...
验证码 换一张
取 消