且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用Asp.net显示消息框

更新时间:2023-12-05 23:50:52

你不能在一个消息框中显示消息框asp.net页面没有使用某种代码...



试试这个:



 System.Web.HttpContext.Current.Response.Write(< SCRIPT LANGUAGE =JavaScript> alert(你已被警告)< / SCRIPT>)


how to show message box in asp.net page of any web site without using j script and c#

You can''t show a messagebox in an asp.net page without using some kind of code...

Try this:

System.Web.HttpContext.Current.Response.Write("<SCRIPT LANGUAGE="JavaScript">alert("You have been alerted")</SCRIPT>")