Monday, September 19, 2016

Disable Copy/Paste/Right Click in mvc TextBox

@Html.TextBoxFor(model => model.Days, 
                  new { 
                        @class = "input_box", 
                        id = "txtDays",
                        oncopy="return false", 
                        onpaste="return false" 
                      }
                   )