请教关于弹出提示框的问题
在VB.NET中可以把代码下成下列,然后在ASPX页面中调用.在C#类中应该怎么写?需要在ASPX中调用的.Messagebox.show()用过不好使,还有其他方法都不行,所以想请教一下.谢谢了!!
sub alert(txt,url)
response.write " <Script language=javascript> alert( ' "& txt & " '); "
select case url
case " "
response.write "history.go(-1); "
case "0 "
response.write "window.close(); "
case else
response.write "top.window.document.location.href= ' "& url & " '; "
end select
response.write " </Script> "
response.End()
end sub
------解决方案--------------------UP
------解决方案--------------------类似问题,顶住!!!!
------解决方案--------------------Page.RegisterStartupScript( " ", " <script> alert( ' " + Hello + " '); </script> ");
不过是C#里的写法