Well you could trap the keypress or keydown event and replace the value in the box but it's not safe or user friendly. If you are using stored procedures and parameters then ' should be automatically be handled. If you're using dynamic SQL, poor practice in any case, then you normally need to double them up to '' (that's two single quotes) in your server-side code.
--
Joe (
Microsoft MVP - XML)