<input type="image" ID="ImageButton2"  src="images/index_r35_c7.jpg" onclick="javascript:window.open ('1.aspx')" />
在.html页面中父窗体不刷新但是在.aspx页面中会刷新这要怎么解决

解决方案 »

  1.   

    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" >
    <head runat="server">
        <title>无标题页</title>
    </head>
    <body>
        <form id="form1" runat="server">
        <div>
           <input type="image" ID="ImageButton2"  src="images/111.jpg" onclick="javascript:window.open ('Look_TouPiao.aspx','height=100,width=400')" />
               
        </div>
        </form>
    </body>
    </html>会刷新页面   我要单击按钮不刷新页面
      

  2.   

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

  3.   

    <a><img src="" onclick="javascript:window.open ('1.aspx')" /></a>  
    楼主这么写
      

  4.   

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

  5.   

    <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;"