gusucode.com > ASP+ACCESS中学网站设计与实现(论文+源代码+开题报告+任务书) > ASP+ACCESS中学网站设计与实现(论文+源代码+开题报告+任务书)\ASP001中学网站设计与实现\zxweb\admin\ModifyNews_Class3_update.asp
<!--#include file=conn.asp --> <!--#include file=session.asp--> <% NewsID=Request.QueryString("NewsID") BigClassID=Request.Form("BigClassID") if BigClassID=0 or BigClassId="" then %> <script language=javascript> history.back() alert("请选择该新闻所属类别!") </script> <% Response.End end if SmallClassId=Request.Form("SmallClassID") if SmallClassID=0 or SmallClassID="" then %> <script language=javascript> history.back() alert("请选择该新闻所属类别!") </script> <% Response.End end if sql="update News Set BigClassID=" & BigClassID & " where NewsID=" & NewsID conn.execute sql sql="update News Set SmallClassID=" & SmallClassID & " where NewsID=" & NewsID conn.execute sql %> <html> <head> <meta http-equiv="Content-Language" content="zh-cn"> <meta http-equiv="refresh" content="2;url=ModifyNews2.asp?NewsID=<%=NewsID%>"> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <link href="css/bodystyle.css" rel="stylesheet" type="text/css"> </head> <body> <p> </p> <table border="0" width="450" align=center> <tr> <td width="100%"><b>修改新闻新闻</b></td> </tr> <tr> <td width="100%"> <hr size="1"> </td> </tr> <tr> <td width="100%">已经成功修改该新闻类别!<BR>系统将在2秒种后自动返回!</td> </tr> <tr> <td width="100%"> </td> </tr> </table> </body> </html>