I want to display username in master page... default controlid visible false..
Attempt1:
if (Session["UserType"]!= null)
{
Page.Master.FindControl("panel_UserName").Visible = true; //Working fine
}
Attempt2:
if (Session["UserType"]!= null)
{
((Panel)Page.Master.FindControl("panel_UserName")).InnerText = " Welcome " + Session["UserName"].ToString();
}
Error display like : 'System.Web.UI.WebControls.Panel' does not contain a definition for 'InnerText' and no extension method
How to display username in masterpage...if UserType==true
...
Go to the complete details ...