Introduction The upcoming release of the .NET Framework version 4.0 and the simultaneous release of Visual Studio 2010 comes with a host of upgrades to the Entity Framework. The Entity Framework is Microsofts officially supported Object Relational Mapping (ORM) tool used to connect .NET based applications...
Recently in one application I am working on, there was a ambiguous reference between two namespaces. One was an object that was generated by our ORM tool (EntitySpaces), and one that was in the System.Web.Security namespace. The class in both was Roles; a namespace alias was the perfect way to resolve...
Have you ever wanted to display a datetime value in a gridview, with a specific format? It doesn't always work intuitively because the <asp:BoundField> uses HtmlEncoding by default to prevent cross site scripting ( as referenced here ), so DateTime formatting techniques using the "DataFormatString"...
Today I had to figure out how to access a label control on the masterpage my page was using. It isn't quite as straightforward as one might imagine, but still not difficult. For this, I am using C# 2008 (v3.5) For this particular page, I have an <asp:Label/> control on the line immediately...