Hello, I'm 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?
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
List() will work nice.
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:
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
This is definitely interesting - http://blogs.adobe.com/jnack/2007/09/photoshop_expre.htmlRead More
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
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
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
A few days ago I reformatted my Dell D820 and installed Windows Vista Ultimate. I also added Photoshop CS3 Extended to my laptop. Usually my laptop is docked and my current monitors are Dell 1907. When I opened Photoshop for the first time on the new configuration, I received an error message stating:Read More