Justin Cooney

Web Development Tips and Examples

  • Capitalize the First Letter of Each Word
    Capitalize the First Letter of Each Word

    This handy-dandy T-SQL query will take any input string and capitalize the start of each word within the string. It will also enforce proper use of lower-case throughout the string without affecting query performance too severely. This query assumes that you are working with titles, user names, or place names where you want to make sure that the first letter of each word is capitalized. (more…)

  •  

    If you are writing a Web application then you want your users to have simple, trouble-free interactions with your site. You definitely don’t want users to get confused with a ‘view source’ context menu when they right click on the form by accident. To make your site as user friendly as possible I think that it is important to disallow accidental mouse clicks to confuse your users. To do so you can use some simple JavaScript code. (more…)

  • Sometimes when you are working with ASP.NET, you’ll want to be able to programmatically capture the HTML that gets output by your .NET code. Here are sample snippets in VB.NET and C# that should give an idea of how this is done. (more…)