Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/29/11 10:53:02 (14 years ago)
Author:
msammer
Message:

#1446 Changed RunCollectionTable for using it in the MVC-pluginhost. Changes for using real Run-objects in the table

Location:
branches/WebApplication/MVC2/HLWebOKBQueryPlugin/Views/Query
Files:
3 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • branches/WebApplication/MVC2/HLWebOKBQueryPlugin/Views/Query/Results.aspx

    r5977 r6076  
    1 <%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>
    2 <%@ Register Src="~/Views/Query/RunCollectionTable.ascx" TagName="RunCollectionTable" TagPrefix="HL" %>
    3 <%@ Register Src="~/Views/Query/RunCollectionDetail.ascx" TagName="RunCollectionDetail" TagPrefix="HL" %>
     1<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" ViewStateMode="Enabled" EnableEventValidation="true"  %>
    42
    53<asp:Content ID="Content3" runat="server" ContentPlaceHolderID="SubMenuContent">
     
    1513    <h2>Results</h2>
    1614   
    17     <h3>Test table element</h3>
    18     <form runat="server">
    19         <HL:RunCollectionTable ID="kurt" runat="server" />
    20     </form>
     15        <% Html.RenderAction("RunCollectionTable"); %>
    2116
    22     <h3>Test detail element</h3>
    23     <HL:RunCollectionDetail ID="sepp" runat="server" />
    2417
    2518</asp:Content>
  • branches/WebApplication/MVC2/HLWebOKBQueryPlugin/Views/Query/RunCollectionDetail.ascx.cs

    r5977 r6076  
    77
    88using System.Reflection;
     9
     10using HLWebOKBQueryPlugin.Helpers;
    911
    1012namespace HLWebOKBQueryPlugin.Views.Query {
  • branches/WebApplication/MVC2/HLWebOKBQueryPlugin/Views/Query/RunCollectionTable.ascx

    r5977 r6076  
    1 <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="RunCollectionTable.ascx.cs" Inherits="HLWebOKBQueryPlugin.Views.Query.RunCollectionTable" %>
     1<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
    22
    3 <asp:GridView ID="GridRunCollection" runat="server" AutoGenerateColumns="False"
    4                 OnRowCommand="GridRunCollection_RowCommand"
    5                 OnSelectedIndexChanged="GridRunCollection_SelectedIndexChanged">
    6     <SelectedRowStyle BackColor="Aqua" />
    7     <Columns>
    8         <asp:BoundField />
    9         <asp:CommandField ShowSelectButton="true" SelectText="Details" />
    10         <asp:BoundField HeaderText="Abs.DifferenceBestKnown2Best" />
    11         <asp:BoundField HeaderText="Algorithm Name" DataField="AlgorithmName" />
    12         <asp:BoundField HeaderText="Algorithm Type" DataField="AlgorithmAlgorithmClass" />
    13         <asp:BoundField HeaderText="Analyser" />
    14     </Columns>
    15 </asp:GridView>
     3<div id="RunCollectionTable" style="overflow: auto; width: 100%">
     4    <form id="frmRunCollectionTable" runat="server" method="post">
    165
    17 <asp:TextBox ID="txtTest" runat="server" />
    18 <asp:TextBox ID="txtTest2" runat="server" />
     6        <asp:GridView ID="GridRunCollection" runat="server" DataSourceID="dsQueryRuns">
     7            <SelectedRowStyle BackColor="Aqua" />
     8            <Columns>
     9                <asp:BoundField />
     10                <asp:CommandField ShowSelectButton="true" SelectText="Details" />
     11            </Columns>
     12        </asp:GridView>
     13        <asp:ObjectDataSource ID="dsQueryRuns" runat="server"
     14                    SelectMethod="getTestRuns"
     15                    TypeName="HLWebPluginHost.Models.QueryModel">
     16        </asp:ObjectDataSource>
     17
     18    </form>
     19</div>
Note: See TracChangeset for help on using the changeset viewer.