开发者

HTMLHelper RadioButton

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜