向用户显示警报或消息。

编程入门 行业动态 更新时间:2024-10-26 20:25:00
本文介绍了向用户显示警报或消息。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

这可能是在错误的论坛中,但这里有。 如何在asp页面的用户浏览器窗口中显示警告。 例如,欢迎消息。我知道我可以用response.write, 做到这一点但是我希望有一个向用户显示消息的一般方法。 谢谢很多。

解决方案

我打算在帖子中添加这个。我已经尝试过使用这个代码,但没有什么 发生: <% msg ="只是一个测试消息 Response.Write("<"&" script language = VBScript>") Response.Write(" MsgBox" ""& msg&"""<"&" / script>") %> "玛吉" < mp ** @ yahoo.cawrote in message news:ON ************** @ TK2MSFTNGP05.phx.gbl ... 这可能是在错误的论坛中,但是这里有。 如何在asp页面的用户浏览器窗口中显示警报。 例如,欢迎消息。我知道我可以用response.write, 做到这一点但是我希望有一个向用户显示消息的一般方法。 谢谢很多。

" Marge" < mp ** @ yahoo.cawrote:

>我打算在帖子中添加这个。我尝试过使用这段代码,但没有发生任何事情: <% msg ="只是测试消息 Response.Write("<"&" script language = VBScript>") Response.Write(" MsgBox""& msg& ;"""<"&" / script>")%

<%msg =" Just测试消息 %> < script type =" text / javascript"> alert("<%= msg%>"); < / script> - Tim Slattery MS MVP(壳牌/用户) Sl********@bls.gov members.cox/slatteryt

Marge在microsoft.public.inetserver.asp.general上写了30 okt 2008:

" Marge" < mp ** @ yahoo.cawrote in message news:ON ************** @ TK2MSFTNGP05.phx.gbl ... >这可能是在错误的论坛中,但这里有。 如何在asp的用户浏览器窗口中显示警告页面。 例如,欢迎消息。我知道我可以用 response.write做到这一点,但是我希望有一种向用户显示消息的通用方法。

[请不要使用usenet]

我打算将此添加到这篇文章。我尝试过使用这段代码,但 没有任何反应: <% msg ="只是一个测试消息 Response.Write("<"&" script language = VBScript>") Response.Write(" MsgBox" ""& msg&"""<"&" / script>") %>

您的客户端vbscript,如果有效,则仅在IE上。 尝试: message =" Hello world" %> < script type =''text / javascript''> alert (''<%= message%>''); < / script> <% - Evertjan。 荷兰。 (请在我的电子邮件地址中将x'变为点数)

This may be in the wrong forum, but here goes. How can I display an alert in the users browser window from an asp page. For example, a welcome message. I know I can do this with response.write, but I''d like to have a general method of displaying messages to the user. Thanks a lot all.

解决方案

I meant to add this in the post. I''ve tried using this code, but nothing happens: <% msg = "Just a Test Message" Response.Write("<" & "script language=VBScript>") Response.Write("MsgBox """ & msg & """<" & "/script>") %> "Marge" <mp**@yahoo.cawrote in message news:ON**************@TK2MSFTNGP05.phx.gbl...

This may be in the wrong forum, but here goes. How can I display an alert in the users browser window from an asp page. For example, a welcome message. I know I can do this with response.write, but I''d like to have a general method of displaying messages to the user. Thanks a lot all.

"Marge" <mp**@yahoo.cawrote:

>I meant to add this in the post. I''ve tried using this code, but nothinghappens:<% msg = "Just a Test Message" Response.Write("<" & "script language=VBScript>") Response.Write("MsgBox """ & msg & """<" & "/script>")%

<%msg="Just a Test Message" %> <script type="text/javascript"> alert("<%=msg%>"); </script> -- Tim Slattery MS MVP(Shell/User) Sl********@bls.gov members.cox/slatteryt

Marge wrote on 30 okt 2008 in microsoft.public.inetserver.asp.general:

"Marge" <mp**@yahoo.cawrote in message news:ON**************@TK2MSFTNGP05.phx.gbl...

>This may be in the wrong forum, but here goes.How can I display an alert in the users browser window from an asppage.For example, a welcome message. I know I can do this withresponse.write, but I''d like to have a general method of displayingmessages to the user.

[Please do not toppost on usenet]

I meant to add this in the post. I''ve tried using this code, but nothing happens: <% msg = "Just a Test Message" Response.Write("<" & "script language=VBScript>") Response.Write("MsgBox """ & msg & """<" & "/script>") %>

Your clientside vbscript, if it works, then only on IE. Try: message = "Hello world" %> <script type=''text/javascript''> alert(''<% = message %>''); </script> <% -- Evertjan. The Netherlands. (Please change the x''es to dots in my emailaddress)

更多推荐

向用户显示警报或消息。

本文发布于:2023-11-27 16:56:54,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1638839.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:警报   消息   用户

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!