想在按键的客户端(好像是用onclientclick)添加下面两句,不知道要怎么加
document.getElementById('TextBox1').value="";
document.getElementById('TextBox1').focus();
document.getElementById('TextBox1').value="";
document.getElementById('TextBox1').focus();
解决方案 »
- showModalDialog显示一个子窗体后如何在后台操作父窗体的控件对象?
- Server.Transfer为什么不调用缓存而是重新执行页面???
- Access: WHRER 不支持OR语句???
- 问大家几个问题 不用说细节
- .net framework中已经封装了“树型数据结构”吗?
- 请教怎样将xmlhttp.ResponseStream返回的ADO Stream对象加载在浏览器上
- ***用QueryString传值中带有“+”这个符号怎么办??
- [急]请问怎么运行编译.cs文件
- 如何实现两个窗口之间数据的传递.
- 大家好,现在我需要用水晶报表做一个《工程许可证》报表打印,它是A3哪么大的规格(是乎还小一点点,比A4大),申明我机子只装用A4激光打印
- 关于开放接口的问题
- 急救!!!!!!sql 错误
对这个实在不怎么了解!
就拿我们asp.net来说一般都是在设计页面双击要添加代码的控件。然后就到添加代码的地方了!
你说的是源里添加吗!?
这个好象还真不怎么知道!
呵呵!
<asp:Button runat="server" ID="btnok" OnClientClick="document.getElementById('TextBox1').value=""; document.getElementById('TextBox1').focus();" />或者:
btnok.Attributes.Add("onclick", "document.getElementById('TextBox1').value=\"\"; document.getElementById('TextBox1').focus();");
document.getElementById('TextBox1').value="";
document.getElementById('TextBox1').focus();
}
OnClientClick="aa();"
document.getElementById('TextBox1').value="";
document.getElementById('TextBox1').focus();
}
OnClientClick="aa();"