Jason N. Gaylord
Social Distancing since 3/14
Small planet on JasonGaylord.com A planet with rings on JasonGaylord.com
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

Microsoft Adds a Free 411 Number

Microsoft announced that they now offer a Free 411 number for callers to find a business. It is powered by Live Search. The phone number is 1-800-225-5411.

Read More

VB.NET's yield return

I was struggling with an issue today when converting some C# to VB.NET. C# has a really cool yield return statement that is used in an iterator block to provide a value to the enumerator object. VB.NET does not have the yield keyword. So, there are a few solutions (none of which are really clean) to get around this. You could use a return statement to return the value if you are looping through and would like to break an enumerator and return a single value. However, if you’d like to return the entire enumeration, create a List() of the child type and return the list. Since you are usually using this with an IEnumerable, the List() will work nice.

Read More

Writing a Base64 String to the File System or Browser

Quite often, vendors pass images or PDFs to customers using the binary contents of the file. To make it more secure, they convert the binary contents to a Base64 string. A full explanation about Base64 encoding can be found at Wikipedia here. Anyway, when you receive the string, you cannot simply write it to a file or to the browser. First, you must convert the data into a Byte array. The sample code below demonstrates this:

Read More

Week In Review - Base Class Library Source, MVP, ASPInsiders

On Wednesday, Scott Guthrie announced that beginning with version 3.5 of the .NET Framework (and VS2008), the base class libraries will be browsable and can be used for debugging purposes.

Read More

Visual Studio 2008 Web Service Issue

I discovered an issue in VS 2008 Beta 2 that will most likely be an issue when the product goes to RTM. I notified Microsoft of the issue and they have pushed this back to VS 2008 SP1 because its so late in the development process. The issue is with adding a web service to a website. When adding a web service to a pre-existing website, a template for a web service is created. It will take VS 2008 to realize that the file has inline code. Then, when adding a snippet (right-click in the code window and choose Insert Snippet) that contains imports for a namespace, the namespaces are added at the top of the page like:

Read More

Remix Boston

I was going to be a presenter at Remix Boston, but had to back down due to a previous conflict. However, it is definitely promising to be a great event! Be sure to check out the details at http://www.remix07boston.com/.

Read More

Photoshop Express - Free web-based tool

Purchase EasySearchASP.net at a huge discount and support ADA

Scott Cate, the creator of EasySearchASP.net, is offering the product at huge discounts to help Scott Hanselman reach his goal of $50,000 to donate to the American Diabetes Association. You can purchase the $99 version of EasySearchASP.net (200 page limit) for $10.15 or the full $249 version of EasySearchASP.net for $25.15. Find out more about this at http://tinyurl.com/3ygycd. This is the search engine I use on both JasonGaylord.com and DotNetValley.com.

Read More

Client-Side Alerts in ASP.NET

Bertrand Le Roy has moved his old client-side alert code over to CodePlex. You can learn more about it and check out the download here: http://weblogs.asp.net/bleroy/archive/2005/12/01/432016.aspx.

Read More

Using Animations with the PopupControlExtender

I was looking for a solution to provide a “fly-in” form when a user would click on a particular button. I found it with the PopupControlExtender. The documentation for Animations with controls is poor so with some testing, I finally got a solution working for me. I added a button and a panel on my page. I set the panel below the button and set the style to:

Read More