Create BaseMasterPage.cs file in App_Code/Common/
using System;
using System.Data;
using System.Configuration;
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;
public class BaseMasterPage : MasterPage
{
protected HiddenField hiddenSession;
public BaseMasterPage()
{
//
// TODO: Add constructor logic here
//
}
public string SessionText
{
get
{
return hiddenSession.Value;
}
}
}
No comments:
Post a Comment