protected void Page_Load(object sender, EventArgs e) { try { WebsiteName = Convert.ToString(Request.QueryString["WebsiteName"]); Premalink = Convert.ToString(Request.QueryString["Premalink"]); if (!IsPostBack) { if ((WebsiteName != null && WebsiteName != "") || (Premalink != null && Premalink != "")) { System.Uri websiteurl = new System.Uri(Premalink); string tags = ""; lsttag = bltag.GetTag(WebsiteName, Premalink, "http://" + websiteurl.Host, "How"); if (lsttag != null) { foreach (DtoTag tag in lsttag) { tags += "|" + tag.TagName + "," + tag.TagId + ",0"; } } ViewState["Howtags"] = tags; hdnHowtag.Value = tags; tags = ""; lsttag = new List <DtoTag>(); lsttag = bltag.GetTag(WebsiteName, Premalink, "http://" + websiteurl.Host, "What"); if (lsttag != null) { foreach (DtoTag tag in lsttag) { tags += "|" + tag.TagName + "," + tag.TagId + ",0"; } } ViewState["Whattags"] = tags; hdnWhattag.Value = tags; tags = ""; lsttag = new List <DtoTag>(); lsttag = bltag.GetTag(WebsiteName, Premalink, "http://" + websiteurl.Host, "When"); if (lsttag != null) { foreach (DtoTag tag in lsttag) { tags += "|" + tag.TagName + "," + tag.TagId + ",0"; } } ViewState["Whentags"] = tags; hdnWhentag.Value = tags; tags = ""; lsttag = new List <DtoTag>(); lsttag = bltag.GetTag(WebsiteName, Premalink, "http://" + websiteurl.Host, "Where"); if (lsttag != null) { foreach (DtoTag tag in lsttag) { tags += "|" + tag.TagName + "," + tag.TagId + ",0"; } } ViewState["Wheretags"] = tags; hdnWheretag.Value = tags; tags = ""; lsttag = new List <DtoTag>(); lsttag = bltag.GetTag(WebsiteName, Premalink, "http://" + websiteurl.Host, "Why"); if (lsttag != null) { foreach (DtoTag tag in lsttag) { tags += "|" + tag.TagName + "," + tag.TagId + ",0"; } } ViewState["Whytags"] = tags; hdnWhytag.Value = tags; tags = ""; lsttag = new List <DtoTag>(); lsttag = bltag.GetTag(WebsiteName, Premalink, "http://" + websiteurl.Host, "Who"); if (lsttag != null) { foreach (DtoTag tag in lsttag) { tags += "|" + tag.TagName + "," + tag.TagId + ",0"; } } ViewState["Whotags"] = tags; hdnWhotag.Value = tags; } } } catch (Exception ex) { ex.ToExceptionless().Submit(); } }