Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Create a new ASP.NET WebForms app. Open the code behind (F7) "Default.aspx.cs" and add the following code in the method Page_Load
- */
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Web;
- using System.Web.UI;
- using System.Web.UI.WebControls;
- namespace WebApplication10
- {
- public partial class _Default : Page
- {
- protected void Page_Load(object sender, EventArgs e)
- {
- string firstName = "Jeff";
- string lastName = "Smith";
- string city = "Seattle";
- Session["FirstName"] = firstName;
- Session["LastName"] = lastName;
- Session["City"] = city;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement