Johnny Code
Fear no code

.NET Framework

Cloning the existing BizForm webpart

Creating User Specific, Editable BizForms

By John Bubriski on April 19, 2011

In this article I’ll show you how to create a special type of BizForm that will allow each user to edit their specific form data over and over. When a user returns to a page that has the BizForm on it, their data will be automatically loaded from the BizForm table. This is a simple and easy way to store per user data, without mucking with the System Tables which aren’t intended to store this type of data. You also retain the benefits that a BizForm has over a System Table (A view of the data, Notifications, attachments, etc.)[...]

Posted in Kentico, Programming | Tagged .NET Framework, ASP.NET, C#, Code, Kentico API Programming, Kentico BizForms, Kentico CMS | 3 Responses

Kentico Custom Form Control: Required Checkbox

By John Bubriski on December 3, 2010

Kentico is great but nobody is perfect!  One small detail they’ve missed is a checkbox control that you can set to be “required”.  By required I mean “You have to check this box”.  After doing some Googling, I found this thread which confirmed my suspicion: http://devnet.kentico.com/Forums/f45/t17269/Making-a-Required-CheckBox-in-Alternative-Form.aspx?replyto=17359 “We have validators for empty values, which means that [...]

Posted in Kentico, Programming | Tagged .NET Framework, ASP.NET, C#, Code, Kentico API Programming, Kentico CMS | 2 Responses

How to correctly use a Try/Catch block in C#

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 | 1 Response

Some useful Visual Studio code snippets

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 | Leave a response

Setting up a New Email Template

Using Kentico’s Email Templates in Custom Code

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 | 5 Responses

Adding Macro Expression support to Kentico Web Parts

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 | 2 Responses

Introducing the Custom Settings Module for Kentico CMS

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 | 1 Response

Using Kentico’s API to Programmatically Create Forum Groups and Forums

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 | 1 Response

Using Kentico’s API to Programmatically Create a Media Library

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 | 3 Responses

First code snippet: How to uninstall and reinstall ASP.NET

By John Bubriski on May 27, 2009

So I decided to try and use this as a storage mechanism for my snippets of code.  Here is the first one!  How to uninstall and reinstall ASP.NET!  You might need to do this if you start having issues with ASP.NET. C:>cd windowsMicrosoft.NETFrameworkv2.0.50727 C:WINDOWSMicrosoft.NETFrameworkv2.0.50727>aspnet_regiis -u Start uninstalling ASP.NET (2.0.50727). ……………………………. Finished uninstalling ASP.NET (2.0.50727). C:WINDOWSMicrosoft.NETFrameworkv2.0.50727>aspnet_regiis [...]

Posted in Programming | Tagged .NET Framework, ASP.NET, IIS, Windows | 2 Responses

« Previous

About Me

I'm a Software Engineer at Worcester Envelope in Auburn, MA. Check out the About page to learn more about me.
Follow @JohnBubriski

Pages

  • About Me
  • Achievements!
  • Contact Me
  • Developer Resources
  • Kentico Resources
    • Kentico Tips and Tricks
    • Settings Module for Kentico CMS

Tags

.NET Framework AES ASP.NET ASP.NET MVC ASP.NET Web API AspDotNetStoreFront blogging C# Code Code Camp Cryptography Decryption Elmah Encryption Entity Framework Exceptions Extension Method HTML IIS IIS6 javascript jQuery JSON Kentico API Programming Kentico BizForms Kentico CMS Kentico Event Log Kentico Module Development Learning Python 3 Microsoft PHP Productivity Quick Tip REST Shortcuts SQL SQLite Development Symmetric Encryption Time Saver Travian Add On Project URL Routing Using PyGame Visual Studio web-service wordpress

Archives

  • 2012 (15)
  • 2011 (11)
  • 2010 (19)
  • 2009 (11)

Programming Blogs

  • Stack Overflow
  • Coding Horror
  • Code: Impossible
  • Self Elected
  • Chris Jenning's Blog

Meta

  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org

Copyright © 2012 Johnny Code.

Powered by WordPress and Hybrid.

Maintained by John Bubriski