Nuno Gomes /* ASP.NET Adventures */

var myInterests = new { language : "C#", technology: "ASP.NET" };

Browse by Tags

All Tags » .NET (RSS)
Enum types, FlagsAttribute & Zero value – Part 2
In my previous post I wrote about why you should pay attention when using enum value Zero. After reading that post you are probably thinking like Benjamin Roux : Why don’t you start the enum values at 0x1? Well I could, but doing that I lose the ability...
Posted: Jul 06 2012, 03:04 AM by nmgomes | with 6 comment(s)
Filed under: ,
OpenXML error “file is corrupt and cannot be opened.”
From time to time I ear some people saying their new web application supports data export to Excel format. So far so good … but they don’t tell the all story … in fact almost all the times what is happening is they are exporting data to a Comma-Separated...
Posted: Jun 20 2012, 01:36 AM by nmgomes | with 1 comment(s)
Filed under: ,
ELWEA - EventLog WebEvent Aggregator for ASP.NET
Last time I wrote about Health Monitoring was during 2008 and since then I ‘m using, on a daily basis, a complex Health Monitoring EventLog provider to aggregate WebEvents from specific ASP.NET web applications. Last year I found ELMAH (Error Logging...
Posted: Apr 28 2011, 02:53 AM by nmgomes | with 5 comment(s)
Filed under: ,
.NET – ArrayList hidden gem
From time to time I end-up finding really old hidden gems and a few days ago I found another one. IList System.Collections.ArrayList.ReadOnly(IList list) This amazing method is available since the beginning (.NET 1.0). I always complain about the small...
Posted: Feb 04 2011, 01:52 AM by nmgomes | with 2 comment(s)
Filed under:
.NET – The Garbage Collector and Finalizers
I’m not used to use Finalizers in my everyday job but I always thought that if I use it more frequently I could achieve some extra performance. Well, I’m a natural lazy programmer and that prevents me from digging deeper and doing some tests to clarify...
Posted: Jun 21 2009, 06:52 PM by nmgomes | with no comments
Filed under:
.NET - Determine Whether an Assembly was compiled in Debug Mode
Finding out whether an assembly was compiled in Debug or Release mode is a task we must do from time to time. I know two ways of accomplish this: Searching for the System.Diagnostics.DebuggableAttribute Searching for the System.Reflection.AssemblyConfigurationAttribute...
Posted: Jun 20 2009, 10:58 PM by nmgomes | with 4 comment(s)
Filed under:
ASP.NET Controls - Improving automatic ID generation : Introduction ( Part 1)
Some time ago, while developing a large corporate ASP.NET application with high complex layout requirements and thus, many custom composite controls, I was faced with the following problem: The generated HTML of my pages don’t meet my bandwidth...
Posted: Jan 23 2008, 02:38 AM by nmgomes | with 6 comment(s)
Filed under: ,
.NET Framework 2.0 SP1 - TagMapping Undocumented hotfix
While searching a way to solve the HtmlControls tag mapping problem I found that the new SP1 bring an extra undocumented hotfix. This undocumented hotfix changes MainTagNameToTypeMapper.GetControlType method so that, for every tag name regardless is kind...
Posted: Jan 17 2008, 11:38 AM by nmgomes | with no comments
Filed under: ,
More Posts