A Checkbox with the label after the box looks like this: <%=this.CheckBox(f=>f.CheckboxSample).LabelAfter("Checkbox Sample") %>

That’s it for fluentHtml! Really simple and I love that it’s strongly-typed. I hate this type of code: <%= Html.TextBox(“Name”, Model.Name) %> However, this will no longer be the case with ASP.NET MVC 2, which is a GREAT thing!

Something else to look into:Of course if you’re in a rush, you can use something else that the MvcContrib brings to the table and that is Html.InputForm. If you go this route, you’ll need to add all the templates that you want to use from the MvcContrib project’s InputBuilderTemplates into your Shared folder. Then you’d be able to do this in your markup:

A Checkbox with the label after the box looks like this: <%=this.CheckBox(f=>f.CheckboxSample).LabelAfter("Checkbox Sample") %>

That’s it for fluentHtml! Really simple and I love that it’s strongly-typed. I hate this type of code: <%= Html.TextBox(“Name”, Model.Name) %> However, this will no longer be the case with ASP.NET MVC 2, which is a GREAT thing!

Something else to look into:Of course if you’re in a rush, you can use something else that the MvcContrib brings to the table and that is Html.InputForm. If you go this route, you’ll need to add all the templates that you want to use from the MvcContrib project’s InputBuilderTemplates into your Shared folder. Then you’d be able to do this in your markup: