private void btnSave_ServerClick(object sender, System.EventArgs e) { if (Page.IsValid) { // Save the form contents. int sectionID = SectionManager.AddNewSection(tbxSectionName.Value, tbxSectionDescription.Text, HnDGeneralUtils.TryConvertToShort(tbxOrderNo.Text)); // done, redirect to self Response.Redirect("AddSection.aspx", true); } }