Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Create a new ASP.NET WebForms app. In the About page drag label control and name it lblMyText. Open the code behind F7 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 About : Page
- {
- protected void Page_Load(object sender, EventArgs e)
- {
- string firstName = (string)(Session["FirstName"]);
- string lastName = (string)(Session["LastName"]);
- string city = (string)(Session["City"]);
- lblMyText.Text = firstName;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement