经典ASP中的警报消息和页面重定向 [英] Alert msg and Redirect of page in Classic ASP

查看:94
本文介绍了经典ASP中的警报消息和页面重定向的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的朋友们,



我创建了输入表单,当用户提交一些数据时,

我想显示一个警告消息数据成功提交并重定向到某个页面。



我这样用过。

 < span class =code-keyword><   script     language   =  javascript >  
alert(数据已成功提交)
window.navigate(interview_mis.asp)
< / script >





警告显示但页面重定向在Chrome中无效。



如果我用作

< pre lang =xml> < script language = javascript >
alert(已成功更新...)
< / script >
Response.redirect(page.asp)



页面已重定向但未显示警报。



请建议在经典asp中使用什么警报消息和重定向页面。

解决方案



你可以使用这样的东西。



alert(成功更新......); window.location.href ='yourpage.asp'





这将弹出警告信息并重定向到yourpage.asp。



谢谢。

问候,

Roshan Karki


Dear Friends,

I have created input form and when user submit some data,
I want to display a alert msg as "Data Submitted Successfully" and redirect to some page.

I have used like this.

<script language="javascript">
alert("Data Submitted Successfully ")
window.navigate("interview_mis.asp")
</script>



Alert is displayed but redirection of page is not working in Chrome.

if I use as

<script language="javascript">
    alert("Updated Successfully...")
    </script>
    Response.redirect("page.asp")


Page is Redirected but alert is not displayed.

Kindly suggest what to use for both alert msg and redirect of page in classic asp.

解决方案

Hi,
You can use something like this.

alert("Updated Successfully...");window.location.href='yourpage.asp'


This will both pop up the alert message and redirect to yourpage.asp.

Thanks.
Regards,
Roshan Karki


这篇关于经典ASP中的警报消息和页面重定向的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆