Changeset 5186 for branches/WebApplication/MVC2/HeuristicLabWeb.PluginHost/HLWebPluginHost/Views/AlgorithmClass/Index.aspx
- Timestamp:
- 12/31/10 18:36:51 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/WebApplication/MVC2/HeuristicLabWeb.PluginHost/HLWebPluginHost/Views/AlgorithmClass/Index.aspx
r4952 r5186 1 <%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %> 2 3 <script runat="server"> 4 5 void lbAlgorithmClassOnClick(object sender, EventArgs e) { 6 txtName.Text = "aaa"; 7 } 8 9 </script> 10 11 1 <%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<HLWebPluginHost.OKBService.AlgorithmClass>>" %> 2 <%@ Import Namespace="HLWebOKBAdminPlugin.Helpers" %> 12 3 <asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server"> 13 4 Index 14 5 </asp:Content> 15 16 6 17 7 <asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"> 18 8 19 < form id="form1" runat="server">9 <h2>Index</h2> 20 10 11 <table> 12 <tr> 13 <th></th> 14 <th> 15 Description 16 </th> 17 <th> 18 Name 19 </th> 20 <th> 21 Id 22 </th> 23 </tr> 21 24 22 < h2>AlgorithmClasses</h2>25 <% foreach (var item in Model) { %> 23 26 24 <%--<ul> 25 <%foreach (HLWebPluginHost.OKBService.AlgorithmClass ac in Model.AlgorithmClassList) { %> 26 <li> 27 <%: ac.Name %> 28 </li> 29 <%} %> 30 </ul>--%> 27 <tr> 28 <td> 29 <%: Html.ActionLink("Edit", "Edit", new { id=item.Id }) %> | 30 <%: Html.ActionLink("Details", "Details", new { id=item.Id })%> | 31 <%: Html.ActionLink("Delete", "Delete", new { id = item.Id })%> 32 </td> 33 <td> 34 <%: Html.Truncate(item.Description,25) %> 35 </td> 36 <td> 37 <%: Html.Truncate(item.Name, 25)%> 38 </td> 39 <td> 40 <%: item.Id %> 41 </td> 42 </tr> 31 43 32 <asp:Panel ID="Panel1" runat="server"> 33 <asp:ImageButton ID="btnAddAlgorithmClass" runat="server" 34 ImageUrl="~/Resources/Plus.bmp" ToolTip="Add Class" BorderColor="Black" 35 CommandArgument="Id" CommandName="AddAlgorithmClass" /> 36 <asp:ImageButton ID="btnDeleteAlgorithmClass" runat="server" 37 ImageUrl="~/Resources/Delete.bmp" ToolTip="Delete Class" 38 CommandArgument="Id" CommandName="lgorithmClass" /> 39 <asp:ImageButton ID="btnUpdateAlgorithmClass" runat="server" 40 CommandArgument="Id" CommandName="UpdAlgorithmClass" 41 ImageUrl="~/Resources/Update.bmp" /> 42 </asp:Panel> 44 <% } %> 45 46 </table> 47 43 48 <p> 44 <asp:ListBox ID="lbAlgorithmClass" runat="server" DataSourceID="ODSAlgorithmClasses" 45 DataTextField="Name" DataValueField="Id" Height="350px" style="margin-top: 0px" 46 Width="246px"> 47 </asp:ListBox> 48 <asp:ObjectDataSource ID="ODSAlgorithmClasses" runat="server" 49 SelectMethod="AlgorithmClassGetAll" 50 TypeName="HLWebPluginHost.Models.AlgorithmClassModel"> 51 </asp:ObjectDataSource> 52 <asp:Button ID="Button1" Text="Select" OnClick="lbAlgorithmClassOnClick" runat="server"/> 53 49 <%: Html.ActionLink("Create New", "Create") %> 54 50 </p> 55 56 57 <asp:Panel ID="Panel2" runat="server" Height="139px">58 <asp:Label ID="lbName" runat="server" Text="Name:"></asp:Label>59 60 <asp:TextBox ID="txtName" runat="server" Width="197px"></asp:TextBox>61 <br />62 Description:63 <asp:TextBox ID="txtDescription" runat="server" Width="197px"></asp:TextBox>64 </asp:Panel>65 66 67 </form>68 69 70 51 71 52 </asp:Content> 53
Note: See TracChangeset
for help on using the changeset viewer.