protected void btn_submit_Click(object sender, EventArgs e) { Session["Username"] = txt_name.Text; Response.Redirect("UserDetails.aspx"); }
Yes and yes. Using sql should be almost transparent to your code, the Session will work like normal. When it comes to adding objects the object will need to be serialisable, but for native types you don't need to do anything different.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)