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; }
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(); }