1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
|
protected void Page_PreInit(object sender, EventArgs e)
{
string thm;
thm = (string)Session["themeSelected"];
if (thm != null)
{
Page.Theme = thm;
}
else
{
Session["themeSelected"] = thm;
Page.Theme = "Default";
}
}
protected void Button_Theme1_Click(object sender, EventArgs e)
{
//Response.Write("Valeur web.config" + ConfigurationManager.AppSettings["siteTheme"]);
Session["themeSelected"] = "Themes1";
ConfigurationManager.AppSettings["siteTheme"] = "Themes1";
Server.Transfer(Request.FilePath);
}
protected void Button1_Click(object sender, EventArgs e)
{
try
{
if (TextBox1.Text != null)
{
int sizeDossier = int.Parse(TextBox1.Text);
ConfigurationManager.AppSettings["sizeDossier"] = sizeDossier.ToString();
}
}
catch
{
}
finally
{
}
} |
Partager