问个笨笨问题!

hameizi 2005-06-19 09:41:13
& "<input " & mhaveprint & " name=""print1"" type=""submit"" class=""btn"" value=""正式打印确认"" onClick=""return ccheck()"">" & vbcrlf _
& "  <input " & mhaveprint & " type=""submit"" value="" 提 交 "" name=""submit"" onclick=""return check()"">" & vbcrlf _
& "<input name=""print"" type=""button"" class=""btn"" value="" 打 印 "" onClick=""print2();"" >      " & vbcrlf _

下面是ccheck()的函数
function ccheck() {

a = confirm("协议一经确认后,认购协议将转为正式协议,认购协议内容将无法修改,是否继续?");
if(a)

return true;
else
return false;
}

我现在想在点了“正式打印确认”后

执行consign.open "update table1 set haveprint=1 where caseid=" & mcaseid,connectstring

但不知道该写在什么地方,请教一下思路???
...全文
98 11 打赏 收藏 转发到动态 举报
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
hameizi 2005-06-19
  • 打赏
  • 举报
回复
谢谢,我解决问题,揭贴拉~~~~~~~~~~~~~
zwrtv 2005-06-19
  • 打赏
  • 举报
回复
路过学习下
majiming 2005-06-19
  • 打赏
  • 举报
回复
a = confirm("协议一经确认后,认购协议将转为正式协议,认购协议内容将无法修改,是否继续?");
if(a)
{
location.href="dueprint2.asp?caseid=<%=caseid%>&permitid=<%=permitid%>"
return true;
}
hameizi 2005-06-19
  • 打赏
  • 举报
回复
就是

a = confirm("协议一经确认后,认购协议将转为正式协议,认购协议内容将无法修改,是否继续?");
if(a)
//这边该这么写啊
return true;

文件叫dueprint2.asp
传 两个参数 caseid,permitid
majiming 2005-06-19
  • 打赏
  • 举报
回复
回复人: hameizi(梅子) (
但在脚本中

打开新的文件我没写过啊



什么意思
hameizi 2005-06-19
  • 打赏
  • 举报
回复
呜~~~~~~~~~~~~~~~~
eishen 2005-06-19
  • 打赏
  • 举报
回复
同意上面
hameizi 2005-06-19
  • 打赏
  • 举报
回复
我是新建了一个文件


<%
Option Explicit
if session("clerkno")="" then
response.write "<br><br><center>登录信息已经丢失!请重新<br><br><font color=red><a href=login.asp>登录</a></font></center>"
response.end
end if

dim connectstring,consign,mcaseid,permitid,page,rstsign

connectstring=Application("NM_connectstring")
Set consign = CreateObject("ADODB.Recordset")
Set rstSign = CreateObject("ADODB.Recordset")
rstSign.CursorLocation = 3
rstSign.CacheSize = 5
mcaseid=request("caseid")


rstSign.Open "select * from commerialdetail where caseid="& mcaseid,connectstring
if rstSign("baddress")=" " or isnull(rstSign("baddress")) or rstSign("country")=" "or isnull(rstSign("country")) or rstSign("cid")=" "or isnull(rstSign("cid")) then
Response.Write "<center><br><br>信息尚未填写完毕!无法转为正式!<br><br><a href=""javascript:window.history.back()"">返回</a>"
Response.End
end if
rstSign.Close
rstSign.Open "select * from commerialhouse where caseid="& mcaseid,connectstring

consign.open "update case set haveprint=1 where caseid=" & mcaseid,connectstring

response.redirect "presalecontract.asp?permitid="&permitid&"&caseid=" & mcaseid & "&steps=3"

%>



但在脚本中


打开新的文件我没写过啊

大家可千万别晕,还望赐教
hameizi 2005-06-19
  • 打赏
  • 举报
回复
我试试
patchclass 2005-06-19
  • 打赏
  • 举报
回复
新开个文件 里面写 consign.open "update table1 set haveprint=1 where caseid=" & mcaseid,connectstring

a = confirm("协议一经确认后,认购协议将转为正式协议,认购协议内容将无法修改,是否继续?");
if(a)
//你打开那个新的文件
return true;
hameizi 2005-06-19
  • 打赏
  • 举报
回复
急啊,有没有来啊,呜~~~~~~~~~~~~~

28,406

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧