protected void Page_Load(object sender, EventArgs e) { new BasePage(); Session["bodyid"] = "coupon"; Control ctrlDiv = this.Master.FindControl("logoutDiv"); ctrlDiv.Visible = false; if (!IsPostBack) { if (!string.IsNullOrEmpty(Request.QueryString["TrackID"])) { using (Database db = new MySqlDatabase()) { IDictionary<string, string> trackInfo = new Dictionary<string, string>(); try { string decryptString = EncryptionClass.Decrypt(Request.QueryString["TrackID"]); if (!string.IsNullOrEmpty(decryptString)) { if (Convert.ToInt32(decryptString) != 0) { trackInfo = db.getTrackInformationByID(Convert.ToInt32(decryptString)); StageName.Text = trackInfo["StageName"]; TrackName.Text = trackInfo["TrackName"]; ISRCCode.Text = trackInfo["isrcCode"]; string tags = string.Empty; tags = tags + (string.IsNullOrEmpty(trackInfo["genre1"]) ? string.Empty : trackInfo["genre1"] + " "); tags = tags + (string.IsNullOrEmpty(trackInfo["genre2"]) ? string.Empty : trackInfo["genre2"] + " "); tags = tags + (string.IsNullOrEmpty(trackInfo["genre3"]) ? string.Empty : trackInfo["genre3"] + " "); tags = tags + (string.IsNullOrEmpty(trackInfo["subgenre1"]) ? string.Empty : trackInfo["subgenre1"] + " "); tags = tags + (string.IsNullOrEmpty(trackInfo["subgenre2"]) ? string.Empty : trackInfo["subgenre2"] + " "); tags = tags + (string.IsNullOrEmpty(trackInfo["subgenre3"]) ? string.Empty : trackInfo["subgenre3"] + " "); tags = tags + (string.IsNullOrEmpty(trackInfo["tag1"]) ? string.Empty : trackInfo["tag1"] + " "); tags = tags + (string.IsNullOrEmpty(trackInfo["tag2"]) ? string.Empty : trackInfo["tag2"] + " "); tags = tags + (string.IsNullOrEmpty(trackInfo["tag3"]) ? string.Empty : trackInfo["tag3"] + " "); AddedTags.Text = tags; } else { StageName.Text = TrackName.Text = ISRCCode.Text = AddedTags.Text = Resources.Resource.NoTrackInfoFound; ClientScript.RegisterStartupScript (this.GetType(), "alert", "alert('" + Resources.Resource.TrackInfoCannotShown + "');", true); } } else { StageName.Text = TrackName.Text = ISRCCode.Text = AddedTags.Text = Resources.Resource.NoTrackInfoFound; ClientScript.RegisterStartupScript (this.GetType(), "alert", "alert('" + Resources.Resource.TrackInfoCannotShown + "');", true); } } catch { StageName.Text = TrackName.Text = ISRCCode.Text = AddedTags.Text = Resources.Resource.NoTrackInfoFound; ClientScript.RegisterStartupScript (this.GetType(), "alert", "alert('" + Resources.Resource.TrackInfoCannotShown + "');", true); } } } else { ClientScript.RegisterStartupScript(this.GetType(), "alert", "alert('" + Resources.Resource.NoTrackInfoFound + "');", true); } } if (Convert.ToString(Session["culture"]).Contains("nl")) { ClientScript.RegisterStartupScript(this.GetType(), "HighLightLangBtn", "HighLightLangBtn('" + "ctl00_LanguageNL" + "');", true); ClientScript.RegisterStartupScript(this.GetType(), "UnHighLightLangBtn", "UnHighLightLangBtn('" + "ctl00_LanguageUS" + "');", true); } else { ClientScript.RegisterStartupScript(this.GetType(), "HighLightLangBtn", "HighLightLangBtn('" + "ctl00_LanguageUS" + "');", true); ClientScript.RegisterStartupScript(this.GetType(), "UnHighLightLangBtn", "UnHighLightLangBtn('" + "ctl00_LanguageNL" + "');", true); } }