protected void butSubmit_Click(object sender, EventArgs e) { if (txtSlnID.Text.Trim() == ddlSolution.Text.Trim() && txtCopyID.Text.Trim() == ddContract.Text) { Page.RegisterStartupScript("", "<script language=javascript>alert('不能复制至相同项目方案!')</script>"); return; } if (DbDataLoader.CopyContract(int.Parse(txtSlnID.Text), int.Parse(ddContract.Text), int.Parse(ddlSolution.Text), int.Parse(txtCopyID.Text))) { Page.RegisterStartupScript("", "<script language=javascript>alert('复制成功!')</script>"); } else { Page.RegisterStartupScript("", "<script language=javascript>alert('复制失败!')</script>"); } }