当前位置: 代码迷 >> ASP.NET >> html控件不让页面刷新解决办法
  详细解决方案

html控件不让页面刷新解决办法

热度:8069   发布时间:2013-02-25 00:00:00.0
html控件不让页面刷新
<input   type= "image "   ID= "ImageButton2 "     src= "images/index_r35_c7.jpg "   onclick= "javascript:window.open   ( '1.aspx ') "   />


在页面中父窗体不刷新

但是在.aspx页面中会刷新

这要怎么解决



------解决方案--------------------------------------------------------
<input type= "image " ID= "ImageButton2 " src= "images/index_r35_c7.jpg " onclick= "javascript:window.open ( '1.aspx ') " />
如果不是服务器控件 不会自动回发 当然没的刷新.
------解决方案--------------------------------------------------------
<input type= "image " ID= "ImageButton2 " src= "images/index_r35_c7.jpg " onclick= "javascript:window.open ( '1.aspx ') " />

html控件 <input type= "image "> 有submit功能~,想点击它不提交的话
onclick= "window.open ( '1.aspx ');return false; "
  相关解决方案