为什么Response.Write没有跳出,怎么解决啊
OracleDataAccess oda = new OracleDataAccess();
string sql = "insert into TBL_TeachChapter(BrfNo,ChapNo,ChapName,Hour) " +
"values(:BrfNo,:ChapNo,:ChapName,:Hour) ";
OracleParameter[] ops =
{
new OracleParameter( ":BrfNo ",tc.BrfNo),
new OracleParameter( ":ChapNo ",tc.ChapNo),
new OracleParameter( ":ChapName ",tc.ChapName),
new OracleParameter( ":Hour ",tc.Hour)
};
try
{
oda.ExecuteNonQuery(sql, ops);
Response.Redirect( "../../RedirectPage.aspx?RedirectPath= " + "./CourseManage/OutLine/AddTeachChapter.aspx ");
this.grdChap.Visible = true;
btnAddChapter.Visible = true;
this.tbAddTable.Visible = false;
}
catch(Exception ex)
{
Response.Write( " <script> 数据重复 </script> ");
}
Response.Redirect( "../../RedirectPage.aspx?RedirectPath= " + "./CourseManage/OutLine/AddTeachChapter.aspx ");
this.grdChap.Visible = true;
btnAddChapter.Visible = true;
this.tbAddTable.Visible = false;
------解决方案--------------------