Description: The former is MVC, the latter is Boostrap
1.form form
@using (Html.BeginForm ("Create", "User", FormMethod.Post, new {@class = "form-horizontal"})
{}
2. Text box
@Html. TextBox ("LoginName", "", new {@class = "Form-control", placeholder = "Please enter account"})
<input type= "text" class= "Form-control" id= "LoginName" placeholder= "Please enter QQ" >
3. Hiding controls
@Html. Hidden ("UserId");
<input type= "hidden" id= "UserId" value= "/>
4. Radio control
<Divclass= "Col-md-4"> <labelclass= "Checkbox-inline">@Html. RadioButton ("Gender", 1, new {@id = "Radio1", @name = "Gender"}) male</label><labelclass= "Checkbox-inline">@Html. RadioButton ("Gender", 0, new {@id = "radio0", @name = "Gender"}) female</label></Div>
<Divclass= "Col-md-4"><labelclass= "Checkbox-inline"><inputtype= "Radio"name= "Optionsradiosinline"ID= "OptionsRadios3"value= "Option1"checked>male</label><labelclass= "Checkbox-inline"><inputtype= "Radio"name= "Optionsradiosinline"ID= "OptionsRadios4"value= "Option2">female</label> </Div>
2016 System design Phase I (archive i) MVC related controls collation