html - Create view put table on the right side of the screen -
I have a MVC project with user unit that has many relationships with the address,
I code I use first and the scene is produced from the scaffolding. In the making operation I look at working from the user area on the left side of the screen. The work I have to do is very easy to create a table on the right side of the screen, which is currently empty with a column that users can add to know, how should I do this?
I am very new to MVC and I have not seen any document vied on the right side of how to add control as a table.
I try to do something without success, the table is at the bottom of the screen Try it:
@using (Html.BeginForm ( )) {@ Html.AntiForgeryToken () & Lt; div class = "form-horizontal" & gt; & Lt; h4 & gt; The user & lt; / H4 & gt; & Lt; Hour / & gt; @html Validity valid (true) & lt; div class = "form-group" & gt; @ Html.LabelFor (model => model.UserId, new {@class = "control-label col-md-2"}) & lt; div class = "col-md-10" & gt; @ Html.EditorFor (model => model.UserId) @ html.ValidationMessageFor (model => model.UserId) & lt; / Div & gt; & Lt; / Div & gt; & Lt; div class = "form-group" & gt; @ Html.LabelFor (model = & gt; model.WorkingAt, new {@class = "control-label col-md-2"}) & lt; div class = "col-md-10" & gt; @ Html.EditorFor (model => model.WorkingAt) @ html.ValidationMessageFor (model => model.WorkingAt) & lt; / Div & gt; & Lt; / Div & gt; & Lt; div class = "form-group" & gt; & Lt; Div class = "col-md-offset-2 col-md-10" & gt; & Lt; Input type = "submit" value = "create" class = "btn btn-default" /> & Lt; / Div & gt; & Lt; / Div & gt; & Lt; / Div & gt; // This is the table that I want to be on the right side of the screen & lt; Table class = "table" & gt; & Lt; TR & gt; & Lt; Th & gt; @ Html.EditorFor (model => model .address) & lt; / Th & gt; & Lt; / Table & gt; & Lt; Div & gt; @html.exe link ("back to list", "index") & lt; / Div & gt; @ Section scripts {@ Scripts.Render ("~ / bundles / jqueryval"}}
& lt; Table class = "table column-md-offset-11 col-md-10" & gt; & Lt; TR & gt; & Lt; Th & gt; @ Html.EditorFor (model = & gt; model address) & lt; / Th & gt; & Lt; / Table & gt;
Comments
Post a Comment