ClosedXML Nicely Formatted Header Row

Nice Header Row in Excel
Nice Header Row in Excel

In this article I’ll show a simple example of nicely formatting a header row in a generated Excel document (using the open source ClosedXML library).

If you would first like some background into setting up and calling functions using .Net and the ClosedXML library, have a look at a previous article I wrote, or visit my site (jwcooney.com) and browse the available categories. Continue reading “ClosedXML Nicely Formatted Header Row”

Advertisements

ASP .NET: Safely Escape Data from your Database to Display in HTML but Still Keep Line Breaks

ASP.NET 4.6
ASP.NET 4.6

In this short article I will show a simple example of how to secure data for presentation but still keep select formatting such as line breaks. For more .NET tips feel free to browse the categories of my site at: https://jwcooney.com/category/net/ Continue reading “ASP .NET: Safely Escape Data from your Database to Display in HTML but Still Keep Line Breaks”

CSS and ASP.NET: How to Convert Numbers from your Database into a Human-Friendly Format

This is a short post to show how to make numerical data coming from your database more human readable. This means separating a large number by commas every three digits, adding two decimal places, and maybe even a dollar sign if you are displaying money amounts. The solution I show is a mix of CSS and ASP.NET. Continue reading “CSS and ASP.NET: How to Convert Numbers from your Database into a Human-Friendly Format”