Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Create one (or more) partial views for your entity (example using the contact entity) - IdChange.ascx (which shows Id and change information) - PersonalInfo.ascx - Address.ascx</p> <p>IdChange.ascx will only be needed in edit views</p> <p>Create two seperate views for edit and create and then use RenderPartial to bring your model data to the view. Create.aspx</p> <pre><code>&lt;asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server"&gt; &lt;%= Html.ValidationSummary("Create was unsuccessful. Please correct the errors and try again.") %&gt; &lt;% using (Html.BeginForm()) { %&gt; &lt;fieldset&gt; &lt;legend&gt;Create a new contact&lt;/legend&gt; &lt;div id="pagecontent"&gt; &lt;div id="left"&gt; &lt;/div&gt; &lt;div id="center"&gt; &lt;% Html.RenderPartial("PersonalInfo", Model); %&gt; &lt;/div&gt; &lt;/div&gt; &lt;p&gt; &lt;input type="submit" value="Create" /&gt; </code></pre> <p>Edit.aspx</p> <pre><code>&lt;asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server"&gt; &lt;%= Html.ValidationSummary("Edit was unsuccessful. Please correct the errors and try again.") %&gt; &lt;% using (Html.BeginForm()) { %&gt; &lt;fieldset&gt; &lt;legend&gt;Edit existing contact&lt;/legend&gt; &lt;div id="pagecontent"&gt; &lt;div id="left"&gt; &lt;% Html.RenderPartial("IdChange", Model); %&gt; &lt;/div&gt; &lt;div id="center"&gt; &lt;% Html.RenderPartial("PersonalInfo", Model); %&gt; &lt;/div&gt; &lt;/div&gt; &lt;p&gt; &lt;input type="submit" value="Edit" /&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload