Mask a Phone Number Field but Only Save the Numbers using jQuery

Masking a phone number field is relatively easy by utilizing one of the many jQuery masking plug-ins. It will turn your input field from this: 5554449999 into this: (555) 444-9999 which looks much nicer but at the same time that becomes the text that will be sent when you post back the form to the server.

Continue reading

How to Disable IE8 Compatibility Button

I was recently working on an ASP.NET MVC3 website and had users reporting that the site was crashing when they clicked a certain link. When I attempted to replicate the problem using the same web browser as the user, Internet Explorer 8, it seemed to work for me. After some back and forth, I discovered the problem was that the user had Compatibility Mode enabled for the website.

Continue reading