Project DescriptionSimple asp.net MVC controls helps to create an MVC web pages easily and without changing the context of the view.
This project is inspired by the Grid control in MVCContrib project.
Simple MVC Controls
The first release of this project contains only the
Fieldset element where you can easily put other input controls from the asp.net MVC project.
I know that the initial realease could contain more, but it is developed by the
YAGNI principle and this is what I need for my
developer web pages.
I am thinking of several other improvements which will be implemented as soon as possible.
Usage
Usage of the control is very simple, if you need to create a fieldset inside your form, you can follow this template:
<%
using(Html.BeginForm()) {
Html.Fieldset(
"Create a new comment",
item =>
{
item.For("Email:", "email").TextBox(null).Validate();
item.For("Url:", "url").TextBox(null, new {@class = "url"}).Validate();
item.For("Comment:", "comment").TextArea(null, 5, 50, null).Validate();
item.For("Remember me:", "rememberMe").CheckBox();
item.For(Html.Submit("save", "Save comment"));
}
);
}
%>
Improvements
If you have any suggestions or ideas for improvements, please use the Issue tracker.
Thank you for your usage