.NET 2.0

.NET 2.0

The Importance of a Consistent Development Environment

29 Sep

I am again traveling this week, in Toronto speaking at Tech Days Canada 2009, and as luck would have it I needed to complete some work on a few custom DotNetNuke modules for clients on a "Urgent" basis.  So this afternoon I darted off to the speaker room to get an internet connection, just recently I re-formatted my laptop to move to Windows 7, one of the main reasons that I needed to re-format the system was to create an environment that matched my primary development machine, today was the first true test of this new configuration.  Thankfully everything worked as expected and all issues were resolved.  In this blog post, I'll explain a bit as to why it is important when working on multiple environments to have consistent system configurations.

tags: .NET 1.1, .NET 2.0, General Tech, .NET 3.5, DNN Development

Improving the Debugger Experience Using Attributes

03 Jul

I have often found that when debugging applications that a lot of time is spent drilling down into the various custom objects to see what the values are of specific instance methods.  In this blog posting I will demonstrate the default behavior of Visual Studio when debugging a class, I will then show how you can improve the debugging experience with the addition of a simple attribute.

tags: .NET 2.0, .NET 3.5, C#

Development Environment and Tools Used

22 May

A very common question that I get asked by people is; what tools do you use to complete your development and what type of system do you use.  Now, I believe I have written a bit about this in the past, but I thought I would take some time to go through and give a bit of a detailed overview of what I use for development and why I have selected the hardware and software that I have.  I will cover this in detail from both the hardware and software point of view.

tags: ASP.NET, .NET 1.1, .NET 2.0, General Tech, Productivity Tools, .NET 3.5, C#, DNN Development

Review of SourceGear Vault Source Control Provider

16 Apr

My last blog article "Selecting the Right Source Control Provider" touched on the evaluation criteria that I use when looking for a source control system. This article is a review of sorts of SourceGear's Vault product, my preferred source control system. I'll start by reviewing vault as it relates to the criteria from the previous article, I will then provide my overall feedback on my experience with Vault.

tags: ASP.NET, Product Review, .NET 1.1, .NET 2.0, General Tech, Productivity Tools, .NET 3.5, C#, DNN Development

Selecting the Right Source Control Provider

08 Apr

One of the most common questions that I have been getting recently has been "what source control provider do you use and why?".  This article is the first in a series of two articles about source control.  This article takes a quick look at criteria that I believe is important to consider when it comes to evaluating source control systems for use.  The next article in the series will be a review of the source control system that I use, in relation to the evaluation criteria that I list in this article.

tags: SQL, ASP.NET, .NET 1.1, .NET 2.0, General Tech, .NET 3.5, C#, VB, DNN Development

Avoiding File Locks and Cannot Access File Exceptions

22 Jan

While working through some issues recently with some legacy code written by someone else I was faced with a horrible case of a shared object that was writing to the file.  This was a "custom" logging implementation and opened a file for append, inserted the line, and then closed the file.  Well in times of heavy load the system would encounter errors such as "Cannot access ___ because it is being used by another process".  So in effect the file was either still open, or the lock was not yet released.  This post goes through a bit of the detail on how I resolved the issue.

tags: Tutorials, .NET 2.0, .NET 3.5, C#, VB

Why Dynamically Attached Databases Cause Problems

24 Nov

One item that many people find unusual about my DotNetNuke installation guides is my insistence on NOT using the Database.mdf, dynamically attached database file for the creation of a DotNetNuke database.  In my tutorials I have quickly dismissed the topic by noting that "issues" come up when trying to use a dynamically attached database and I leave it at this.  Well after seeing more questions on this topic recently in the DotNetNuke.com forums I wanted to take a moment to put my $0.02 out there as to WHY I don't like it.  I will do this by discussing quickly what the differences are in the two approaches, then I'll discuss the "downfalls" of each.

tags: DNN, SQL, .NET 2.0, General Tech, .NET 3.5

Using the IN Clause With Stored Procedures

08 Aug

Recently I have been working on creating a dynamic reporting engine for use within the DotNetNuke system, a method to allow for the execution of a stored procedure and the proper display of the results. This includes creating a list of parameters, including dynamically loaded lookup systems and more. Well the most complex item that I have had to condition for was how to deal with filter options that require the use of the SQL IN clause, there are many ways of doing this, but I have found a way that appears to work perfect for my needs, this will be explained in this posting.

tags: Tutorials, SQL, .NET 1.1, .NET 2.0, .NET 3.5

Exporting a DataGrid to Excel The Easy Way

22 May

Recently I have answered a number of questions regarding an easy way to export datagrid contents to excel format.  In this blog post I will share a static class that I have created called "ExportHelper" which I use quite often to generate quick Excel exports of datagrid data.  I will outline the process and the code below.  It should be noted that this solution is NOT a DotNetNuke specific solution, I use this for both DotNetNuke and standard ASP.NET solutions.

tags: DNN, Tutorials, ASP.NET, .NET 1.1, .NET 2.0, .NET 3.5, C#

The How, What, and Why of Injection Vulnerabilities

20 May

Recently when browsing the forums on DotNetNuke.com I have noticed more and more questions regarding Script Injection vulnerability in the core and third-party modules.  I have often found that at times it is hard for non-developers to truly understand the concept of script injection and what makes a site vulnerable.  So in this article I will take a bit of time to discuss both types of injection that users of DotNetNuke should be aware of, how to test for them, and also how to prevent the vulnerability when creating modules. 

tags: DNN, SQL, ASP.NET, .NET 1.1, .NET 2.0, General Tech, .NET 3.5

Visual Studio Code Snippets

02 Mar

Recently I have been asked by multiple people what rapid design tools I use, or what types of code generation tools do I use.  Many people are surprised when I tell them that for the most part I don't use any rapid generation tools.  I do use a few home grown tools, such as my Info Class Generator, which is available on this site.  However, that is as far as I go with automated code generators.  However, one thing that I have started using more and more frequently are Code Snippets within Visual Studio.

I have found that creating a few helpful Code Snippets has allowed me to quickly and easily format my code, and build my needed structures in almost no time.  In this blog article I will share two of my most commonly used Code Snippets, if there is a demand I will post future code snippets here as well.

tags: ASP.NET, Announcements, .NET 1.1, .NET 2.0, .NET 3.5, C#

Migration of Existing Site to 3Essentials

27 Jul

Recently there have been numerous discussions on the DotNetNuke.com Forums regarding hosting providers and who one should go with and who they should switch to because they are unhappy with their current provider. During all of these discussions I have always recommended the company that I use for hosting 3Essentials. Since making this recommendation I have been receiving numerous e-mails regarding the process to actually migrate a live site over to 3Essentials so I thought I would write a short blog article that explains the basics of moving a website over to 3Essentials, in actuality these instructions SHOULD work for most providers, however there might be some differences.

tags: Tutorials, ASP.NET, .NET 1.1, .NET 2.0

Upgrading DNN 3.x to DNN 4.x

28 Jun

Recently I have noticed an increased number of questions regarding the upgrade process from DNN 3.x to DNN 4.x and overall I do not think there is very much good documentation available on how to actually complete the upgrade. Therefore with this article I will walk you through the process of upgrading a 3.x site to 4.x, I will try to cover as many of the "gotchas" as possible, but please remember as with all of my other tutorials PLEASE use these at your own risk!

tags: DNN, Tutorials, .NET 1.1, .NET 2.0

Logging ASP.NET Application Restarts

15 Mar

Like many ASP.NET programmers I utilize a third party hosting company to host all of my sites. We have all ran into situations where we have been loosing sessions and other oddities and it would be very helpful to find out exactly what caused the application to restart. Well thanks to this post on DotNetNuke.com by Frankt I have found a way to track this information. In this entry I will provide you with code that can obtain this information

tags: DNN, ASP.NET, .NET 1.1, .NET 2.0

Changing passwords in ASP.NET 2.0 applications from the database

12 Feb

At one time or another I think everyone has been locked out of a system and not been able to get back in. This can be especially troubling if you happen to be locked out of your administrator account. I have seen many people asking how to reset passwords for the host and admin accounts with DotNetNuke so I thought I would write up some simple instructions on how to change a password via the database for any ASP.NET 2.0 website.

tags: DNN, ASP.NET, .NET 2.0

Using Regular Expressions (Part 2)

12 Dec

This is the second part of my Regular Expression overview.  In the first article I discussed the basics of creating Regular Expressions and provided a link to test expression patterns using the .NET Framework RegEx classes.  In this article I will discuss the various actions that can be taken to match values in a string using regular expressions.  I will also discuss how you can implement a SQL CLR UDF to allow regular expression validation from your database to provide a strong level of input validation at the database level.

tags: Tutorials, Windows Applications, ASP.NET, .NET 1.1, .NET 2.0

Using Regular Expressions (Part 1)

29 Nov

I have created this two part article series to provide a quick and practical introduction to using regular expressions..  Regular expressions can be used for many things; however, they are typically used for input validation or to perform advanced searches on text in supporting applications.  This first article will explain how to create a regular expression pattern; the expression defines what is considered a match.  The second article will provide details on how to implement regular expressions in .NET applications.

tags: Tutorials, Windows Applications, ASP.NET, .NET 1.1, .NET 2.0

Lightweight System Tray Application (NotifyIcon Based)

28 Oct

Many developers have wanted to create an application that runs fully out of the system tray, maybe an application to help you automatically sort files, or something to monitor the clipboard. Many people have implemented these applications and many textbooks provide instruction on how to create an application such as this, however, none of the books I have found show you the most effective way to create the application.

tags: Tutorials, Windows Applications, .NET 2.0

Adding Custom Profile Fields

07 Oct

ASP.NET 2.0 allows for a very robust user authorization/authentication system with little to no code. One of the added features of the ASP.NET Membership and Profile systems is the ability to have custom user profiles. The ASP.NET Profile system allows you to add additional user profile fields very quickly. I will discuss in this post the methods needed to add simple profile fields (Standard system types), however remember that you can use complex objects for profile fields as well.

tags: Tutorials, ASP.NET, .NET 2.0

.NET 2.0 SMTP Settings

03 Oct

This entry provides detailed information regarding the <smtp> section that can be used with .NET 2.0 applications.  Using this new configuration setting along with the new SmtpClient class can save you time coding e-mail methods.

tags: Windows Applications, ASP.NET, .NET 2.0

Using Atlas.NET

28 Sep

This article explains the procedures needed to implement Ajax.net in your web applications. 

NOTE: As of November 2006 this information is outdated as the official release of ASP.NET AJAX was completed.  If you would like to see a tutorial on using the new AJAX tools send me and e-mail!

tags: Tutorials, ASP.NET, .NET 2.0

Encrypting Files

25 Sep

Included in this entry is sample C#.NET code (1.1 and 2.0 compliant) that can encrypt and decrypt data files. The input elements are byte arrays and it uses a simple key value that you can substitute for a more advanced value if needed.

tags: .NET 1.1, .NET 2.0

Content provided in this blog is provided "AS-IS" and the information should be used at your own discretion.  The thoughts and opinions expressed are the personal thoughts of Mitchel Sellers and do not reflect the opinions of his employer.

Connect with Mitchel

I hope the information here has been helpful. To stay connected you can also subscribe to blog updates via email, contact Mitchel about consulting services, or reach out for assistance via CodeMendor

Content Copyright

Content in this blog is copyright protected.  Re-publishing on other websites is allowed as long as proper credit and backlink to the article is provided.  Any other re-publishing or distribution of this content is prohibited without written permission from Mitchel Sellers.