Jason N. Gaylord
Social Distancing since 3/14
Visit JasonGaylord.com

Hello, I'm  jasongaylord Jason

I live with my family in the rolling hills of Northeastern Pennsylvania. I'm a web developer by trade, but have broad experience in various business areas. Want to know more about me?

Learn More

Dropping MS SQL Tables that have a Prefix using T-SQL

How many times have you wanted to drop a selection of Microsoft SQL Server tables that have begin with some common characters? I have many times especially when I’m testing certain web applications, such as Orchard CMS, and using different database prefix values to switch between instances. Thanks to Curt Hagenlocher over at a StackOverflow post, I now can.

Read More

Embed JavaScript in Custom ASP.NET Server Controls

As ASP.NET evolves, using ASP.NET WebForms is still the most popular way to serve up ASP.NET. One of the biggest benefits of ASP.NET WebForms is the fact that we can use re-usable code in several ways including in a compiled server control. What you may not know is that server controls can be quite powerful and can allow referencing JavaScript files. But, if you’re distributing your controls or do not have the means to host your JavaScript files on a content delivery network (CDN), you may want to package the files with your control.

Read More

Authentication, Cross-App Redirects, and ASP.NET 4.5

I started to test out the migration of our web applications with ASP.NET 4.5. In many cases, we have a login page that redirects from one domain to another domain or sub-domain. In those instances, we’re setting the enableCrossAppRedirects property in the configuration files. You can find out more about setting this by visiting MSDN at http://msdn.microsoft.com/en-us/library/eb0zx8fc(v=VS.100).aspx.

Read More

Setup and Deployment Options Abandoned in Visual Studio 2012

One of my colleagues found out earlier today that a project he recently upgraded to Visual Studio 2012 was broken. What caused this? The setup project that was added to his solution. Back on July 15th, 2010, a program manager from Microsoft posted that Microsoft was abandoning the Visual Studio 2012 setup options in favor of InstallShield LE. While InstallShield does have it’s purpose and many consider it to be the best (or only) real setup solution out there, the Microsoft team offers no standalone installer out of the box. This means developers must be forced to use ClickOnce, Windows Store, InstallShield LE, or another product they purchase.

Read More

Customize the Color Scheme and Theme of Visual Studio 2012

During early builds of Visual Studio 2012, many developers griped and complained about the lack of color within the application. By the time VS2012 has RTM’d, two themes shipped with VS2012. There is a light theme and a dark theme.

Read More

Preventing Web Applications from Inheriting Parent Dependencies (bin)

Have you ever created a web application for something specific such as a standalone web app (forum, photo gallery, web service, etc.) while using ASP.NET and received this:

Read More

JavaScript onClick Navigation Issues within Google Chrome are Solved

For the longest time, If I needed to use an onclick event for navigation (div or some other page element), I’d use something similar to:

Read More

Using Data Annotations in the .NET Framework

Starting with .NET 4 or MVC3, a developer could use a data annotation on a property to force data validation. This is extremely powerful especially for MVC developers. The same data annotations can also be used when building custom modules for Orchard CMS.

Read More

Resolving an SmtpException stating 'Too many messages for this session'

Have you ever noticed an exception being thrown by your application stating something like the following:

Read More

Using HTML 5 Geolocation, Google Maps to Generate Driving Distance

HTML5 will introduce many new and exciting features including the addition of geolocation. Geolocation allows a device to determine a global position of the device (latitude and longitude), it’s accuracy (horizontal accuracy and vertical accuracy), altitude, and speed. The Geolocation feature in HTML 5 is already supported by most mainstream browsers. According to research performed by Mark Pilgrim, the following browser support Geolocation:

Read More