Hi experts,
I refer to the below code. Can someone explain to me why we need to name the Session = something ?
Specifically, this part :
- if(!IsPostBack)
- {
- if (Session["FirstName"] == null && Session["LastName"]==null)
- {
- Session["FirstName"] = "Aspdotnet";
- Session["LastName"] = " Suresh";
- lblString.Text = "Welcome " + Session["FirstName"] + Session["LastName"];
- }
And here's the full code