Result |
<% IResult result = (RunCollectionData)Session["QueryRunDetail"];
foreach (PropertyInfo pi in typeof(IResult).GetProperties()) { %>
<%= 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) { %>
<% } %>
|
<% } %>
Parameter |
<% 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); %>
<%= 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) { %>
<% } %>
|
<% } %>
|
|