Free cookie consent management tool by TermsFeed Policy Generator

source: branches/WebApplication/MVC2/HLWebOKBAdminPlugin/Views/AlgorithmClass/Index.aspx @ 6271

Last change on this file since 6271 was 6271, checked in by dkahn, 13 years ago

#1433 Fixed missing files and debugged and fixed a null pointer exception on AlgorithmClass.Description that was caused by invalid values coming from webservice

File size: 1.4 KB
Line 
1<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>
2
3<%@ Import Namespace="HLWebOKBAdminPlugin.Models" %>
4<%@ Import Namespace="HLWebOKBAdminPlugin.OKBAdministrationService" %>
5
6
7<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
8    Index
9</asp:Content>
10
11<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
12
13    <h2>AlgorithmClass</h2>
14
15<%  long? id = null;  %>
16    <%: Html.ActionLink("New AlgorithmClass", "Detail", new {id}) %>
17    <%: Html.ActionLink("Order ASC", "SortAsc")%>
18    <%: Html.ActionLink("Order DESC", "SortDesc")%>
19
20    <div style="height:150px; overflow:scroll;">
21        <table>
22            <!--// We get this from the Controller (Index)-->
23            <% foreach (AlgorithmClass p in ((AlgorithmClassModel)Model).AlgorithmClasses) {  %>
24            <tr>
25                <td>
26                    <%: Html.Label(p.Name)%>
27                </td>
28                <td>
29                    <%: Html.Label(p.Description) %>
30                </td>
31                <td>
32                    <%: Html.ActionLink("detail", "Detail", new { p.Id })%>
33                </td>
34                <td>
35                    <%: Html.ActionLink("delete", "Delete",new {p.Id}) %>
36                </td>
37            </tr>
38            <% } %>
39        </table>
40    </div>       
41</asp:Content>
Note: See TracBrowser for help on using the repository browser.