using Common; using Dao; using Model; using System; using System.Web; using System.Web.Profile; using System.Web.SessionState; public partial class SettingPage : PageBase, IRequiresSessionState { public GwSetting Setting { get; protected set; } protected void Page_Load(object sender, EventArgs e) { this.CheckRight("107", FailedOperation.PromptOnly); using (GwSettingDao gwSettingDao = new GwSettingDao()) this.Setting = gwSettingDao.GetCurrentSetting(); } }