void Page_Load(object sender, EventArgs e) { var C1TypeInstance = new C1(Session["VARIABLE1"]); Session["VARIABLE1"] = C1TypeInstance.C1Function(); }