或者可以把服务器端的button加图片

解决方案 »

  1.   

    使用Img的主要目的是为了界面美观,在Img的客户端事件onMouseOut和onMouseOver中切换Img的src,而没有找到ImageButton的onMouseOut和onMouseOver客户端事件
      

  2.   

    this.ImageButton1.Attributes.Add("onmouseover","alert('aa');");
      

  3.   

    用imagebutton控件啊,截获客户端的onmouseover事件。
      

  4.   

    同意 acewang(龍芯*Inside!) 
    使用ImageButton
      

  5.   

    加上 runat=server
    使用ImageButton
      

  6.   

    楼上各位的方法好像都不行,我现在加了个Button,设置width=0,然后在img中加上onclick="btnSearch.click()"先凑合用了,谢谢各位!