向用户显示警报或消息。 [英] Display alert or messages to the user.

查看:96
本文介绍了向用户显示警报或消息。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这可能是在错误的论坛中,但这里有。


如何在asp页面的用户浏览器窗口中显示警告。

例如,欢迎消息。我知道我可以用response.write,

做到这一点但是我希望有一个向用户显示消息的一般方法。


谢谢很多。

解决方案

我打算在帖子中添加这个。我已经尝试过使用这个代码,但没有什么

发生:


<%

msg ="只是一个测试消息

Response.Write("<"&" script language = VBScript>")

Response.Write(" MsgBox" ""& msg&"""<"&" / script>")

%>

"玛吉" < mp ** @ yahoo.cawrote in message

news:ON ************** @ TK2MSFTNGP05.phx.gbl ...
< blockquote class =post_quotes>
这可能是在错误的论坛中,但是这里有。


如何在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
http://members.cox.net/slatteryt


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


" Marge" < mp ** @ yahoo.cawrote in message

news:ON ************** @ TK2MSFTNGP05.phx.gbl ...
< blockquote class =post_quotes>
>这可能是在错误的论坛中,但这里有。

如何在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 nothing
happens:

<%
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
http://members.cox.net/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 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.

[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)


这篇关于向用户显示警报或消息。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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