Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>In the MVC 2 a great new method... which if used relies on all the attribute data.</p> <pre><code>&lt;%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage&lt;glossaryDB.EntityClasses.AssociationEntity&gt;" %&gt; &lt;asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server"&gt; Association: Edit &lt;/asp:Content&gt; &lt;asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server"&gt; &lt;h3&gt;Association: Edit&lt;/h3&gt; &lt;% using (Html.BeginForm()) { %&gt; &lt;fieldset style="padding: 1em; margin: 0; border: solid 1px #999;"&gt; &lt;%= Html.ValidationSummary("Edit was unsuccessful. Please correct the errors and try again.") %&gt; &lt;%= Html.EditorForModel() %&gt; &lt;input type="submit" value=" Submit " /&gt; &lt;/fieldset&gt; &lt;% } %&gt; &lt;p&gt;&lt;%= Html.ActionLink("Details", "Index") %&gt;&lt;/p&gt; &lt;/asp:Content&gt; </code></pre> <p>For this to work there is 2 options. Either the UIHint has to provide the source of the data or the controller must. If the UIHint does then the data provided to thhe dropdown is fixed. The other option is the controller, which allows us to switch out the dropdown data with a different set of data as reqired. </p> <p>There is some related examples I found:</p> <p>Nerd Dinner</p> <p>[1]: searcch for codeclimber.net.nz and how-to-create-a-dropdownlist-with-asp.net-mvc [2]: bradwilson.typepad.com and templates-part-5-master-page-templates</p>
    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. 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