Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/24/11 23:29:21 (14 years ago)
Author:
dkahn
Message:

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

Location:
branches/WebApplication/MVC2/HLWebOKBAdminPlugin/Views
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • branches/WebApplication/MVC2/HLWebOKBAdminPlugin/Views/Admin/Menu.ascx

    r6246 r6271  
    33<ul>
    44<li <% if(Session["SelectedSubMenu"] == "AlgorithmClass") {%> class="selected" <%}%>>
    5     <%: Html.ActionLink("AlgorithmClass", "Index", "AlgorithmClassPlgin")%>
     5    <%: Html.ActionLink("AlgorithmClass", "Index", "AlgorithmClass")%>
    66</li>
    77<li <% if(Session["SelectedSubMenu"] == "Algorithm") {%> class="selected" <%}%>>
  • branches/WebApplication/MVC2/HLWebOKBAdminPlugin/Views/AlgorithmClass/Index.aspx

    r6244 r6271  
    1 <%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>
     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
    26
    37<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    4   Index
     8    Index
    59</asp:Content>
    610
    711<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    812
    9     <h2>Index</h2>
     13    <h2>AlgorithmClass</h2>
    1014
     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>       
    1141</asp:Content>
Note: See TracChangeset for help on using the changeset viewer.