protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { BHLProvider provider = new BHLProvider(); // Show the citations that were found int id; string idList = Request.QueryString["id"] as String; if (idList != null) { string[] idStrings = idList.Split('|'); foreach (string idString in idStrings) { if (idString.Length > 1) { if (idString.Substring(0, 1) == "p") { if (Int32.TryParse(idString.Substring(1), out id)) { DataObjects.Page page = provider.PageMetadataSelectByPageID(id); this.AddPageToTable(page); } } else if (idString.Substring(0, 1) == "i") { if (Int32.TryParse(idString.Substring(1), out id)) { DataObjects.PageSummaryView psv = provider.PageSummarySelectByItemId(id); this.AddItemToTable(psv); } } else if (idString.Substring(0, 1) == "t") { if (Int32.TryParse(idString.Substring(1), out id)) { DataObjects.Title title = provider.TitleSelect(id); this.AddTitleToTable(title); } } } } } } }