Reposting this unanswered question from last week to put it back to the top of the queue, since many newer posts have already been answered: We would like to immediately catch/prevent the entry of certain characters (like a '#') from the name, value and ID properties of a textbox control. How can this be done? Thanks.