<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %> <%@ Import Namespace="HLWebOKBQueryPlugin.Helpers" %> <%@ Import Namespace="System.Reflection" %>
<% IResult result = (RunCollectionData)Session["QueryRunDetail"]; foreach (PropertyInfo pi in typeof(IResult).GetProperties()) { %> <% } %>
Result
<%= Ajax.ActionLink("detail", "DetailValue/" + pi.Name, null, new AjaxOptions { UpdateTargetId = "ctrlValue" }, new { @class = "hl-icon-view" })%> <%= pi.Name %> <% try { %> <%= pi.GetValue(result, null).ToString()%> <% } catch (Exception e) { %>   <% } %>
<% IParams parameters = (RunCollectionData)Session["QueryRunDetail"]; foreach (PropertyInfo pi in typeof(IParams).GetProperties()) { RouteValueDictionary rvd = new RouteValueDictionary(); rvd.Add("controller", "Query"); rvd.Add("id", pi.Name); %> <% } %>
Parameter
<%= Ajax.ActionLink("detail", "DetailValue/" + pi.Name, null, new AjaxOptions { UpdateTargetId = "ctrlValue" }, new { @class = "hl-icon-view" })%> <%= pi.Name %> <% try { %> <%= pi.GetValue(parameters, null).ToString()%> <% } catch (Exception e) { %>   <% } %>