Technical Blog

Entries for the 'ASP.NET' Category

This snippet of code uses C# & ASP.NET to display all Server Variables in the HttpContext. The variables are displayed in an easy to read tabular format.

[Read more...]

Posted in: ASP.NET, C#

» Permalink
Conditionally Execute Code Based on Active Solution in Visual Studio

[Read more...]

Posted in: ASP.NET, C#

» Permalink
Provides a generic method that can be utilized to programatically change the style sheet in an ASP.NET application.  This method can be extended by creating an additional method to pass in the name of the desired style sheet.

[Read more...]


» Permalink
The DNN Event Viewer and its hooks provide functionality that are extremely extensible allowing developers to quickly incorporate event logging into their application (custom modules) by utilizing the DNN Core Framework.  Writing to the DNN Event Log provides portal administrators with a friendly and unified interface to track trival, minor, and major events of all varieties (success or failure).

[Read more...]


» Permalink
Encrypting sections of your applications web.config file helps to improve the security of your application by replacing plain text sections of your application configuration with encrypted ones. You can use aspnet_regiis.exe to encrypt sections of the web.config file and ASP.NET can natively decrypt theses sections and process the file normally, all occuring without the need to write additional lines of code.

[Read more...]

Posted in: Encryption, ASP.NET

» Permalink