Monday, August 11, 2014

How to restrict a Textbox for Copy, Cut, Paste using Asp .Net / Javascript

In your Textbox use the following properties and value to make Textbox Copy Restricted Cut Restricted Paste Restricted oncopy="return false" oncut="return false" onpaste="return fals...
Read More


How to Make a Textbox “No Spaces” using Javascript

Use this code in the  "head" .... section function nospaces(t){ if(t.value.match(/\s/g)){ alert('Sorry, you are not allowed to enter any spaces'); t.value=t.value.replace(/\s/g,''); } } function nospaces(t){ if(t.value.match(/\s/g)){ alert('Sorry, you are...
Read More