html标签:
<input type="text" name="txt" onkeydown="event.returnValue=false;" onpaste="return false" />
服务器控件:
<asp:TextBox ID="txt" runat="server" onkeydown="event.returnValue=false;" onpaste="return false"></asp:TextBox>
用FileUpload经常要禁止手动输入:
<asp:FileUpload ID="fu" runat="server" onkeydown="event.returnValue=false;" onpaste="return false" />
最后
以上就是小巧月光最近收集整理的关于FileUpload 控件 禁止手动输入或粘贴的实现代码的全部内容,更多相关FileUpload内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复