当前位置: 代码迷 >> .NET Framework >> vs2005 vb.net 怎么嵌入js代码啊
  详细解决方案

vs2005 vb.net 怎么嵌入js代码啊

热度:17   发布时间:2016-05-02 00:50:24.0
vs2005 vb.net 如何嵌入js代码啊.
我试了网上的但是都没有成功.我想在 <script   runat=server> </script> 中用js打开一个提示 "你已经成功提交 "的窗口,或一个页面.

------解决方案--------------------
html:
<script language=javascript>
function MyAlert()
{
alert( "你已经成功提交 ");
}
</script>

-------------------
server端:
Button1.Attributes.Add( "onclick ", "MyAlert() ");

------------------------------------------
c#中是这样调用的,vb.net没研究过.lz看看能不能得到启示!!
  相关解决方案