日期:2014-05-17  浏览次数:20769 次

弹出对话框传值问题
CourseId=Trim(Request.QueryString( "CourseId "))

CourseDateName=FormatString(Request.form( "CourseDateName "))

CourseDateContent=FormatString(Request.form( "CourseDateContent "))

Sql_CourseDateAdd= "Insert   into   CourseDate(CourseDateName,fid,CourseDateContent,CourseId)   values   ( ' "&CourseDateName& " ',0, ' "&CourseDateContent& " ', "&CourseId& ") "

Rs_CourseDateAdd=ASDB.Exec(Sql_CourseDateAdd)

Response.Write   " <script   language=javascript> alert( '添加成功! ');location.href= 'CourseDate.asp?CourseId= '; </script> "
我想添加成功后,弹出对话框点确定自动跳传到CourseDate.asp页面。但是CourseId这个值怎么传到CourseDate.asp页。

------解决方案--------------------
Response.Write " <script language=javascript> alert( '添加成功! ');location.href= 'CourseDate.asp?CourseId= " & CourseId & " '; </script> "