当前位置: 代码迷 >> ASP.NET >> c#中怎麼寫彈出窗口,该怎么解决
  详细解决方案

c#中怎麼寫彈出窗口,该怎么解决

热度:2534   发布时间:2013-02-26 00:00:00.0
c#中怎麼寫彈出窗口
想要在一個按鈕下實現象html里的window.open( 'index.asp?sign= ', ' ', 'height=170,width=226,top=200,left=100 ')一樣的功能
在c#里則麼實現



------解决方案--------------------------------------------------------
c#本身没有这个功能,可以用客户端的alert,confirm.
------解决方案--------------------------------------------------------
C#是后台语言。他的功能 不可能有客户端的,你只有用JS才能,因为他是客户端语言。
------解决方案--------------------------------------------------------
Response.Write( " <script language= 'javascript '> window.open( ' ', ' ', 'height=240, width=350, top=450,left=2, toolbar=no, menubar=no, scrollbars=yes, resizable=yes,location=no, status=no ') </script> ");
  相关解决方案