title: List model razor view
body: <p>I have an application asp.net mvc . in the controller i have this:</p>
  
  <pre><code> public ActionResult Index()
          {
              Upload.Models.ClientModels model1 = new Models.ClientModels();
              ArrayList client = model1.Client_List();
  
              Upload.Models.AkeoModels model2 = new Models.AkeoModels();
              ArrayList akeo = model2.Akeo_List();
  
  
              ArrayList model = new ArrayList();
              model.Add(client);
              model.Add(akeo);
              return View(model);
  
  
  
  
          }
  </code></pre>
  
  <p>I passed two concatenated list to the view Index as a model:</p>
  
  <pre><code>@{
      ViewBag.Title = "Bienvenue";
      int i = 0;
  }
  
  &lt;hgroup class="title"&gt;
      &lt;h1 style="color:darkcyan"&gt;Liste des clients&lt;/h1&gt;
  &lt;/hgroup&gt;
  
  &lt;section &gt;
  
  &lt;form&gt;
  
  
  &lt;table style="margin-top: 50px;"&gt;
      &lt;tr &gt;&lt;td &gt;&lt;/td&gt;
          &lt;td &gt;&lt;center&gt;&lt;b&gt;Login&lt;/b&gt;&lt;/center&gt;&lt;/td&gt;
          &lt;td&gt;&lt;center&gt;&lt;b&gt;Email&lt;/b&gt;&lt;/center&gt;&lt;/td&gt;
          &lt;td&gt;&lt;center&gt;&lt;b&gt;Password&lt;/b&gt;&lt;/center&gt;&lt;/td&gt;
          &lt;td&gt;&lt;center&gt;&lt;b&gt;Name&lt;/b&gt;&lt;/center&gt;&lt;/td&gt;
  
      &lt;/tr&gt;
      @{
          Upload.Models.ClientModels client = null;
          int j = 0;
          while( j != -1)
      {
          try
          {
              client = Model[j];
            &lt;tr&gt;
          &lt;td width=10px&gt;
              @if (i == 0)
              {
        &lt;input type="radio" 
          name="color" checked &gt;
              }
              else
              {&lt;input type="radio"  name="color" &gt;
              }      
      &lt;/td&gt;
      &lt;td&gt;
        &lt;a type="text" 
          name="color" &gt;@client.Login&lt;/a&gt;
      &lt;/td&gt;
  
      &lt;td&gt;
        &lt;a type="text" 
          name="color" &gt;@client.Mail&lt;/a&gt;
      &lt;/td&gt;
        &lt;td&gt;
        &lt;a type="text" 
          name="color" &gt;@client.Password&lt;/a&gt;
      &lt;/td&gt;
        &lt;td&gt;
        &lt;a type="text" 
          name="color" &gt;@client.Name&lt;/a&gt;
      &lt;/td&gt;
    &lt;/tr&gt;
              i++;
              j++;
          }
          catch {j = -1;}
      }
          i = 0;
      }
  
  &lt;/table&gt;
  
  &lt;/form&gt;
  
  &lt;/section&gt;
  
  &lt;section style="margin-top: 30px"&gt;
  
      &lt;a type="button"   style="width:120px;display:inline-block; height:20px;text-decoration:none;color:white;text-align:center;background-color:darkcyan;padding:5px;border-style:outset;border-width:2px;border-color:darkcyan;margin-left:150px"  href="@Url.Action("Delete_client", "Admin")"&gt;Supprimer&lt;/a&gt;
      &lt;a type="button" style="width:120px;display:inline-block; height:20px;text-decoration:none;color:white;text-align:center;background-color:darkcyan;padding:5px;border-style:outset;border-width:2px;border-color:darkcyan;" href="@Url.Action("Edit_client", "Admin",new { Id = 1 })"&gt;Editer&lt;/a&gt;
      &lt;br /&gt; &lt;br /&gt;
       &lt;a href="@Url.Action("Create","Client")" style="color:blue; margin-top : 30px;margin-left:150px"&gt;Créer un nouveau compte&lt;/a&gt;
  
      &lt;/section&gt;
      &lt;br /&gt;
  &lt;section&gt;
  &lt;hgroup class="title"&gt;
      &lt;h1 style="color:darkcyan"&gt;Liste des akeos&lt;/h1&gt;
  &lt;/hgroup&gt;
  
  &lt;section &gt;
  
  &lt;form&gt;
  
  
  &lt;table style="margin-top: 50px;"&gt;
      &lt;tr &gt;&lt;td &gt;&lt;/td&gt;
          &lt;td &gt;&lt;center&gt;&lt;b&gt;Login&lt;/b&gt;&lt;/center&gt;&lt;/td&gt;
          &lt;td&gt;&lt;center&gt;&lt;b&gt;Email&lt;/b&gt;&lt;/center&gt;&lt;/td&gt;
          &lt;td&gt;&lt;center&gt;&lt;b&gt;Password&lt;/b&gt;&lt;/center&gt;&lt;/td&gt;
          &lt;td&gt;&lt;center&gt;&lt;b&gt;Name&lt;/b&gt;&lt;/center&gt;&lt;/td&gt;
  
      &lt;/tr&gt;
       @{
          Upload.Models.AkeoModels akeo = null;
          int k = 0;
          while( k &lt; Model.Count)
      {
          try
          {
              akeo = Model[k];
  
    &lt;tr&gt;
          &lt;td width=10px&gt;
              @if (i == 0){
        &lt;input type="radio" 
          name="color" checked &gt;
              }
              else{&lt;input type="radio"  name="color" &gt;
              }      
      &lt;/td&gt;
      &lt;td&gt;
        &lt;a type="text" 
          name="color" &gt;@akeo.Login&lt;/a&gt;
      &lt;/td&gt;
  
      &lt;td&gt;
        &lt;a type="text" 
          name="color" &gt;@akeo.Mail&lt;/a&gt;
      &lt;/td&gt;
        &lt;td&gt;
        &lt;a type="text" 
          name="color" &gt;@akeo.Password&lt;/a&gt;
      &lt;/td&gt;
        &lt;td&gt;
        &lt;a type="text" 
          name="color" &gt;@akeo.Name&lt;/a&gt;
      &lt;/td&gt;
    &lt;/tr&gt;
           i++;
              k++;
          }
          catch {k++;}
      }
      }
  &lt;/table&gt;
  &lt;/form&gt;
  
  &lt;/section&gt;
  
  
  
  
  
  
   &lt;section style="margin-top: 30px"&gt;
  
  
      &lt;a type="button"   style="width:120px;display:inline-block; height:20px;text-decoration:none;color:white;text-align:center;background-color:darkcyan;padding:5px;border-style:outset;border-width:2px;border-color:darkcyan;margin-left:150px"  href="@Url.Action("Delete_akeo", "Admin",new { Id = 1})"&gt;Supprimer&lt;/a&gt;
      &lt;a type="button" style="width:120px;display:inline-block; height:20px;text-decoration:none;color:white;text-align:center;background-color:darkcyan;padding:5px;border-style:outset;border-width:2px;border-color:darkcyan;" href="@Url.Action("Edit_akeo", "Admin",new { Id = 1 })"&gt;Editer&lt;/a&gt;
      &lt;br /&gt; &lt;br /&gt; &lt;br /&gt;
       &lt;a href="@Url.Action("Create","Akeo")" style="color:blue; margin-top : 30px;margin-left:150px"&gt;Créer un nouveau compte&lt;/a&gt;
  
      &lt;/section&gt;
  
      &lt;/section&gt;
  </code></pre>
  
  <p>The problem is : the values of the list is not shown . in the view Index only the labels and the buttons below the tables are shown but the content of the model isn't. i'am debugging the program and the model is not empty, it contains two elements.</p>
  
  <ol>
  <li>Where is the error in the view?</li>
  <li>How can i fix it?</li>
  </ol>