protected void Update_Btn_Click(object sender, EventArgs e) { if (Page.IsValid) { Config config = new Config(); config.About = About.Value.ToString(); config.Contact = Contact.Value.ToString(); ConfigSystem configSystem = new ConfigSystem(); configSystem.Update_Config(config); Response.Write("<script>alert('修改成功');location.href='Content.aspx';</script>"); } }