protected void btSave_Click(object sender, EventArgs e) { using (MessageBuilder valMsg = EditPage.ValidateInput()) { string err = valMsg.Message; if (!string.IsNullOrEmpty(err)) { Dialog.Error(this.Page, err); return; } } Dialog.Info(this.Page, EditPage.Save() ? "保存成功!" : "保存失败!"); }