首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

关于<input type="reset" value="清空" />的有关问题

2012-02-10 
关于input typereset value清空 /的问题如题,,这样写可以将asp:textboxid textbox1 中的值清

关于<input type="reset" value="清空" />的问题
如题,,这样写可以将
<asp:textbox   id= "textbox1 ">
中的值清空

但是我不想用系统默认的按纽
用图片代替
该如何实现清空啊

最好有代码

[解决办法]
net 2.0
<asp:textbox id= "textbox1 ">
如果textbox是服务器控件,那么应该这样写:
<img onclick= "javascript:document.getElementById( ' <%=textbox1.ClientID %> ').value= ' ' " src= "img/1.jpg " />

热点排行