问题描述
- asp.net 页面提示框内容如何写
-
我想在弹出的的提示框中写入字符串,要如何做比如
dim str as string="123" //这个在程序中是变的
我需要在提示框中显示这个str ,要如何写 Response.Write("<script type='text/javascript'>alert('123')</script>") 这种写法在alert中只能直接写内容,不能写定义的字符串
解决方案
Response.Write("<script type='text/javascript'>alert('" + 你的字符串变量 +"')</script>");
解决方案二:
asp.net页面提示框
时间: 2024-09-17 03:29:53