示例#1
0
        AreaBLL _AreaBLL = new AreaBLL();  //实例化

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                DataTable dt = _AreaBLL.GetSettings();
                if (dt != null && dt.Rows.Count > 0)
                {
                    this.txtValue.Text   = dt.Rows[0]["Value"].ToString();
                    this.SettingId.Value = dt.Rows[0]["SettingId"].ToString();
                }
            }
        }