什么是asp.net消息框 [英] what is message box in asp.net

查看:89
本文介绍了什么是asp.net消息框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么asp.net类似的消息框

what in asp.net similar to message box

if (s != "null")
   MessageBox.Show("your in ");
else
   MessageBox.Show("wrong user ");

我想在这里更换消息框在C#code

i want to replace message box here in c# code

推荐答案

ASP.NET是一个服务器端的技术。整个C#/ VB /等。 code将在服务器和响应上执行(这可能是HTML / JS / ...)将被发送到客户端。

ASP.NET is a server side technology. The whole C#/VB/etc. code will be executed on the server and the response (which is probably HTML/JS/...) will be sent to the client.

您可以发送必要的Jscript脚本code,以显示在客户端上的消息框。请注意,此code不会被立即执行,但将被发送给浏览器。该浏览器将跨preT并相应地显示消息框。

You could send out the necessary Jscript code to display a message box on the client. Note that this code will not be executed immediately, but will be sent to the browser. The browser will interpret it and display the message box accordingly.

<script type='text/javascript'>
   alert('Hi');
</script>

这篇关于什么是asp.net消息框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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