Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
        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();
        }