コード例 #1
0
ファイル: Ward_Edit.aspx.cs プロジェクト: DHLONGAN/VietGAP
        protected void LoadInfo(int Key)
        {
            Ward_Info info = new Ward_Info(Key);

            txtWardID.Text            = info.WardID.ToString();
            txtName.Text              = info.Name;
            DDLDistrict.SelectedValue = info.District_ID.ToString();
            txtDescription.Text       = info.Description;
        }
コード例 #2
0
ファイル: Ward_Edit.aspx.cs プロジェクト: DHLONGAN/VietGAP
        protected void SaveInfo()
        {
            Ward_Info info = new Ward_Info(int.Parse(txtKey.Text));

            info.District_ID = DDLDistrict.SelectedValue.ToInt();
            info.WardID      = txtWardID.Text.ToInt();
            info.Name        = txtName.Text;
            info.Description = txtDescription.Text;
            info.Save();
        }