title: Display the first row of view data in razor
body: <p>I have a a ViewData with 8 rows. The ForEach loop works fine, but I need to extract the very first row before the foreach.</p>
  
  <p>I need to extract only the first row to inject the default video in the iframe.</p>
  
  <pre><code>&lt;iframe name="myFrame" width="800" height="500" src="@item.ID?wmode=transparent" allowfullscreen="True"&gt;&lt;/iframe&gt;
  </code></pre>
  
  <p>Here is the foreach that works 100%</p>
  
  <hr>
  
  <pre><code>@foreach (var item in (List&lt;VideoModel&gt;)ViewData["Videos"])
  {
    &lt;tr class="sep"&gt;
      &lt;td&gt;@item.DisplayNumber&lt;/td&gt;
      &lt;td&gt;
        @Html.ActionLink("Play Video", "IframeRedirect", "Home", new { ContentID = item.ID }, new { target = "someFrame", @class = "cbutton" })
      &lt;/td&gt;
      &lt;td&gt;@item.Time @item.Hd&lt;/td&gt;
      &lt;td&gt;&lt;b&gt;@item.Title&lt;/b&gt;&lt;br /&gt;@item.Description&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;/td&gt;
      &lt;td&gt;&lt;/td&gt;
      &lt;td&gt;&lt;/td&gt;
      &lt;td&gt;&lt;b&gt;Author:&lt;/b&gt; @item.Author &lt;br /&gt;&lt;a href="@item.AuthorSubscriptionUrl" target="@item.AuthorSubscriptionUrl"&gt;Subscribe to youtube channel&lt;/a&gt;&lt;/td&gt;
    &lt;/tr&gt;
  }
  </code></pre>