<%@ Page language="c#" Codebehind="Properties.aspx.cs" AutoEventWireup="false"  %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > 

<html>
  <head>
   <title>Search Properties</title>
    <meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
    <meta name="CODE_LANGUAGE" Content="C#">
    <meta name=vs_defaultClientScript content="JavaScript">
    <meta name=vs_targetSchema content="http://schemas.microsoft.com/intellisense/ie5">
  </head>
  <body MS_POSITIONING="GridLayout">
<%
Hashtable map = (Hashtable) Session["resultsMap"];
if (null == map)
{
  Response.Write("unable to retrieve map of results. Try running the search again");
  return;
}
String ptrank = Request.Params.Get("ptrank");
if (null == ptrank)
{
  Response.Write("no rank supplied- this page can only be accessed from the client_test page");
  return;
}

Plumtree.Remote.PRC.Search.IPortalSearchResult result = (Plumtree.Remote.PRC.Search.IPortalSearchResult) map[ptrank];
if (null == result)
{
 Response.Write("unable to search result. Try running the search again");
}
	Response.Write("<h3> Properties</h3>");
	Response.Write("<table border=1>");
	Response.Write("<tr><td>Name</td><td>" + result.GetName() + "</td></tr>");
	Response.Write("<tr><td>Rank</td><td>" + result.GetRank() + "</td></tr>");	
	Response.Write("<tr><td>Class ID</td><td>" + result.GetClassID() + "</td></tr>");
	Response.Write("<tr><td>Object ID</td><td>" + result.GetObjectID() + "</td></tr>");	
	Response.Write("<tr><td>Created Date</td><td>" + result.GetCreated() + "</td></tr>");
	Response.Write("<tr><td>Last Modified Date</td><td>" + result.GetLastModified() + "</td></tr>");
	Response.Write("</table>");

%>	

	
  </body>
</html>
