The FileUpload control disables methods that are entered manually

  • 2020-05-09 18:22:49
  • OfStack

html tags:
< input type="text" name="txt" onkeydown="event.returnValue=false;" onpaste="return false" / >
Server control:
< asp:TextBox ID="txt" runat="server" onkeydown="event.returnValue=false;" onpaste="return false" > < /asp:TextBox >
Manual input is often disabled with FileUpload:
< asp:FileUpload ID="fu" runat="server" onkeydown="event.returnValue=false;" onpaste="return false" / >

Related articles: