Asp用消息框刷新页面。 [英] Asp refresh the page with message box.
本文介绍了Asp用消息框刷新页面。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
只是想获得您对代码的看法,我试图用警报消息刷新我的asp页面。这是我的代码。它是工作,但admingradecomponents.aspx是我唯一需要的东西,或者这是我的网站名称?因为当我上传它我知道域名将添加一些文本到网址,如htpp:www。例如
hi just want to get your opinions about the code i tried to refresh my asp page with alert message. here's my code. it is working but does the "admingradecomponents.aspx" is the only thing i need or is this my site name ? because when i upload it i know the domain will add some text to the url like "htpp:" "www." for example
www.admingradecomponents.aspx
。当我上传它时,它会重新加载页面吗?
我尝试了什么:
. will it stil reload the page when i upload it ?
What I have tried:
Dim message As String = "Success"
Dim url As String = "admingradecomponents.aspx"
Dim script As String = "window.onload = function(){ alert('"
script += message
script += "');"
script += "window.location = '"
script += url
script += "'; }"
ClientScript.RegisterStartupScript(Me.GetType(), "Redirect", script, True)
推荐答案
如果页面( admingradecomponents.aspx
)是ASP应用程序的一部分,然后是Fine,否则你必须指定完整的URL。
If the Page (admingradecomponents.aspx
) is part of your ASP application then its Fine, else you will have to specify the complete URL.
这篇关于Asp用消息框刷新页面。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文