My favorites | Sign in
Project Home Downloads Wiki Issues Source
Checkout   Browse   Changes    
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/NCharlie.master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<NCharlie.ViewModels.BoardViewModel>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<h2>Index</h2>

<table>
<tr>
<th></th>
<th>
Name
</th>
<th>
CommunityId
</th>
<th>
PageId
</th>
</tr>

<% foreach (var item in Model) { %>

<tr>
<td>
<%= Html.ActionLink("Edit", "Edit", new { /* id=item.PrimaryKey */ }) %> |
<%= Html.ActionLink("Details", "Details", new { /* id=item.PrimaryKey */ })%> |
<%= Html.ActionLink("Delete", "Delete", new { /* id=item.PrimaryKey */ })%>
</td>
<td>
<%= Html.Encode(item.Name) %>
</td>
<td>
<%= Html.Encode(item.CommunityId) %>
</td>
<td>
<%= Html.Encode(item.PageId) %>
</td>
</tr>

<% } %>

</table>

<p>
<%= Html.ActionLink("Create New", "Create") %>
</p>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="Scripts" runat="server">
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="HeaderContent" runat="server">
</asp:Content>

Change log

r36 by charliesolomon on Apr 10, 2010   Diff
Code for MVC quick start post.
Go to: 
Project members, sign in to write a code review

Older revisions

r35 by charliesolomon on Apr 10, 2010   Diff
Code for MVC quick start post in
NCharlie task board, MVC version.
All revisions of this file

File info

Size: 1615 bytes, 59 lines
Powered by Google Project Hosting