asp高手进一下

来源:百度知道 编辑:UC知道 时间:2024/06/17 10:53:58
我写了一个留言的
数据就不写了
比如:

这里显示留言

这里是提交数据的表单

我的form这么写的
<form action='/xxxxxxx.asp' method='post' target='update' onSubmit='return checkForm(this)'>
<iframe src='about:blank' name=update height=0 width='0'></iframe>
就是让数据从iframe里传输

下面遇到问题了 我想让iframe里数据传输完毕后 自动刷新当前页

不是iframe页哦. 或者帮我设计一下 只刷新显示留言的那里.

该怎么做呢,?
不行哦 2楼的 你的方法不行

没必要用frame的,frame用在这里反而麻烦。

在xxxxxxx.asp里,数据传输最后
加上这个
response.write "<body onload=""parent.top.location.reload();"">"

当数据提交完成后可以用
response.write"<script>window.location.href='***.asp'</script>"