Created
October 9, 2011 05:29
-
-
Save jasonmccay/1273351 to your computer and use it in GitHub Desktop.
Creating a view for the Developer Listing.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<mongohq_csharp.Models.DeveloperModel>" %> | |
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server"> | |
Index | |
</asp:Content> | |
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"> | |
<h2>Developers</h2> | |
<ul> | |
<% foreach(var developer in Model.developers) { %> | |
<li><%= developer.name %> works for <%= developer.company %> and is proficient in <%= developer.languages %></li> | |
<% } %> | |
</ul> | |
</asp:Content> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment