By John Bubriski on October 25, 2010
If you ever do something like this… try { // Some potentially dangerous code } catch (Exception ex) { // Do nothing and swallow the exception } …DON’T. There is never a good reason to do this! If you have this code in a Class Library the problem is magnified! Doing this makes it hard [...]
Posted in Programming | Tagged .NET Framework, ASP.NET, C#, Code, Elmah, Exceptions, Kentico API Programming, Try/Catch |
By John Bubriski on October 18, 2010
So recently I’ve created a couple useful code snippets, and here they are for you to download! Download My Code Snippets To use them, just place them in your custom code snippets directory, which will be something like: C:\Users\{username}\Documents\Visual Studio 2010\Code Snippets Here are the snippets that are included in the zip file download: C# [...]
Posted in Programming | Tagged .NET Framework, ASP.NET, C#, Code, Code Snippet, jQuery, SQL, Visual Studio |
By John Bubriski on October 11, 2010
Introduction I’m a regular developer like you, foraying into the world of embedded programming. Here is how I got started with the Netduino and some solutions to the issues I’ve dealt with. Where To Start? First off, if you haven’t already, check out the Getting Started guide on the Netduino site. This a basic tutorial [...]
Posted in Hardware, Programming | Tagged .Net Micro Framework, C#, Code, Embedded Programming, Netduino, Visual Studio |
By John Bubriski on July 18, 2010
Kentico has an email template feature that is used in many areas of the CMS. When a user registers, posts to the forum, or places an order in the E-Commerce system, they are sent an email from a predefined template that has been filled with their information. I’ll show you how easy it is to leverage this feature in your own code.
Posted in Kentico, Programming | Tagged .NET Framework, ASP.NET, C#, Code, Email Templates, Kentico API Programming |
By John Bubriski on July 16, 2010
A coworker of mine had a BizForm in Kentico that needed a dynamic URL Redirection after the form was submitted. Based on the page with the BizForm, the user would be redirected to a different thank you page. There are many reasons you could want dynamic thank you pages for a single form. For starters, it’s a lot easier to manage one set of data. Then there are the SEO benefits of having separate thank you pages. Don’t forget you might simply want different content, or another page/template entirely!
Posted in Kentico, Programming | Tagged .NET Framework, ASP.NET, C#, Code, Kentico API Programming, Kentico Macro Expressions |
By John Bubriski on July 8, 2010
Two weeks ago I was developing some custom functionality for Kentico CMS. I realized that my custom code had a lot of configurable settings (configuration settings). In the past, we’ve used the appSettings section of the web.config, but I’ve never liked it. Mainly, the appSettings section is unmanageable by non-technical users, although there are other reasons. So I decided to develop a custom module to store custom configuration settings right inside Kentico!
Posted in Programming | Tagged .NET Framework, ASP.NET, C#, Code, Kentico API Programming, Kentico Module Development |
By John Bubriski on June 24, 2010
A Forum Group in Kentico is the outer forum entity, and the Forums inside that Forum Group are the different areas where people actually post threads. It is a standard online forum configuration. Forum Groups can be stand alone, or belong to a Community Group. Using the API, we can create Forum Groups and Forums programmatically.
Posted in Kentico, Programming | Tagged .NET Framework, ASP.NET, C#, Code, Kentico API Programming |
By John Bubriski on June 23, 2010
While the community features of Kentico are good, there are some things that are lacking, one of which is a default group setup. So when an end user goes to your site and creates their own group, they have to manually create a Media Library. Our customer wanted the group to be fully configured upon creation, so I added some code to the group registration web part in order to do so.
Posted in Kentico, Programming | Tagged .NET Framework, ASP.NET, C#, Code, Kentico API Programming |
By John Bubriski on March 5, 2010
Recently we upgraded a client’s e-commerce solution from a home grown Ruby app to a .NET e-commerce application. Part of the whole upgrade was that I needed to replicate a product personalization process that they had. Basically, a customer enters information during checkout and a custom PDF document is generated for them including the information [...]
Posted in Programming | Tagged C#, Code, iTextSharp, Open Office, pdf, template |
By John Bubriski on November 11, 2009
Everyone knows that you can’t create an extension method that uses the same name and parameter list as an existing method of the type your extending. So for example, this method would be perfectly valid: public static string IsNullOrEmpty(this string text) { return string.IsNullOrEmpty(text); } Why? Well, for one, the method parameters are different. The [...]
Posted in Programming | Tagged Code, Extension Method |