I having problem in display the username after a user logged in. Can anyone give some suggestions. Also, few lines of code will be appreciated.
This is my master page which has label which named Label1 on top right, i want to display the username on there after logged in.
MasterPage.master.cs
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Xml.Linq;
using System.Data.SqlClient;
public partial class MasterPage : System.Web.UI.MasterPage
{
protected void Page_Load(object sender, EventArgs e)
{
Label1.Text = Session["Username"].ToString() ...
Go to the complete details ...