protected void Next_Click(object sender, EventArgs e) { if (ValidateAndSave(Master.CurrentPage, true, false)) { //If the user selects “Ask for Donation/Support”, redirect to {propertyshortcode}/SurveyDonation.aspx //if (fbkQ1.SelectedIndex == 10 && Master.CurrentPage == 2) //20171219_Redirecting to donation request based on selection if (fbkQ1.SelectedIndex == 5 && Master.CurrentPage == 2) { Response.Redirect(String.Format("/DonationRequest/{0}/", AlignedPropertyShortCode.ToString()), true); return; } int nextPage = Master.CurrentPage + 1; if (nextPage > 5) { nextPage = 99; } if (Master.CurrentPage == 99) { Response.Redirect(PropertyTools.GetCasinoURL(AlignedPropertyShortCode), true); return; } Response.Redirect(GetURL(nextPage, 1), true); } }
protected void Next_Click(object sender, EventArgs e) { if (ValidateAndSave(Master.CurrentPage, true, false)) { if (Master.CurrentPage == 99) { Response.Redirect(PropertyTools.GetCasinoURL(Master.PropertyShortCode), true); return; } int nextPage = Master.CurrentPage + 1; if (nextPage > 10) { nextPage = 99; } Response.Redirect(GetURL(nextPage, 1), true); } }