protected void Page_PreInit(object sender, EventArgs e) { string thm; thm = (string)Session["themeSelected"]; if (thm != null) { Page.Theme = thm; DropDownList1.Text = thm; } else { Session["themeSelected"] = DropDownList1.Text; Page.Theme = "Blue"; } } protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e) { Session["themeSelected"] = DropDownList1.Text; Server.Transfer(Request.FilePath); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)