ASP.NET Formatted String Control
Back to ASP.NET Web Forms land! SharePoint includes a handy control, FormattedString, that can be used to render the contents of its child controls as specified in a format string; pretty much what...
View ArticleWindows Live Writer Tricks
As many others, I use Windows Live Writer (WLW) as my main tool for blogging. It has aged a bit over the years and sometimes crashes, but I think it is still the best tool around for this purpose. It...
View ArticleLesser-Known NHibernate Features: Dynamic Components
NHibernate, unlike others, has lots of ways to map columns from the database to and from classes. Normally, there is a 1:1 relation between columns and properties, but it doesn’t have to be so: there...
View ArticleSharePoint Reference Document Updated
Just updated my SharePoint reference document Excel (references: here and here) with the default content placeholders.It now contains:Fields: all the built-in SharePoint field types;Content types;List...
View ArticleLesser-Known NHibernate Features: Statistics
NHibernate makes available a number of statistics about its work; this includes, among others:All of the queries executed;Number of entities loaded, inserted, updated and deleted;Number of optimistic...
View ArticleNHibernate Pitfalls: Sharing a Session in Multiple Threads
The NHibernate ISession is not thread-safe, that is, it shouldn’t be shared by multiple threads. The ISessionFactory, however, is thread-safe, and thus it should be used to create ISession instances as...
View ArticleOpen Source @ Microsoft
IntroductionThis post is based on the presentation I did for Porto Tech Hub 2015, Microsoft ♥ Open Source, slightly revised and augmented.TL;DRI intent to demonstrate that Microsoft’s involvement with...
View ArticleEntity Framework Pitfalls: Table Valued Functions
var customers3 = ctx.Database.SqlQuery(typeof(Customer), "SELECT * FROM [dbo].[GetCustomers]()");var customers3 = ctx.Database.SqlQuery(typeof(Customer), "SELECT * FROM [dbo].[GetCustomers]()");As of...
View ArticleSessão Netponto: Entity Framework 7
A minha apresentação sobre Entity Framework 7 feita na 6ª reunião presencial da Netponto em Coimbra está disponível aqui.Os tópicos cobertos foram:Novidades do Entity Framework 7Entity Framework 7 vs...
View ArticleSharePoint Pitfalls: Creating a Visual Studio Project Without SharePoint...
This is the first on a (huge) collection of posts on SharePoint pitfalls. Hope you enjoy, and, please, do send me your feedback!If you do not have SharePoint locally installed, Visual Studio will not...
View ArticleSharePoint Pitfalls: Save Publishing Site as Template Option Missing
If you want to save a publishing site as a template, so that it can be used to create other sites, you may find it surprising that the option is missing from the site settings page:I don’t know exactly...
View ArticleFarewell, ASP.NET Web Forms, We Hardly Knew Ye
ASP.NET Web Forms, the venerable web framework that Microsoft shipped with the .NET framework almost 15 years ago and we all hate love, is going away. Yes, it’s official: ASP.NET 5 will not include Web...
View ArticleGenerating GDI+ Images for ASP.NET MVC Views
This post is about applying the same technique I presented for ASP.NET Web Forms, but this time for MVC.We need to have an ActionResult that does the actual work of converting whatever we draw in the...
View ArticleWhat’s New in C# 6.0
IntroductionVisual Studio 2015 will be officially RTM on July 20th, Microsoft announced. With it comes a new version of the .NET framework (actually, two), .NET 5.0, and inside of it, support for a new...
View ArticleAutomating Microsoft Azure with PowerShell Review
IntroductionI was again asked by Packt Publishing to review one of their books, this time, it was Automating Microsoft Azure with PowerShell. It came in good time, because I am starting to use Azure...
View ArticleCase Study: Comparing ASP.NET Web Forms and MVC Implementations
IntroductionApparently, I am the last ASP.NET Web Forms developer in the whole World, which makes me kind of sad… anyway, after much crying, I decided to try out something: a comparison of Web Forms...
View ArticleSharePoint Pitfalls: Publishing Pages in Document Libraries Other Than Pages
This one is a classic: the SharePoint Publishing feature in a Publishing Site creates a document library by the name of Pages; this is where you can store your publishing pages.A common request is to...
View ArticleSharePoint Pitfalls Index
Updated on July 16thThis page will list all of my posts dedicated to SharePoint pitfalls. It will be updated regularly.Creating a Visual Studio Project Without SharePoint Locally InstalledSave...
View ArticleSharePoint Pitfalls: Master Pages in Page Layouts
When you deploy a page layout, you may want to add your own master page as well. I find it useful to add my own custom master pages and reference them directly, in the same or a dependent feature. You...
View ArticleSharePoint Pitfalls: GUID Formats
SharePoint uses GUIDs extensively. The problem is, it accepts them in different formats, in different locations:The ListId and ListName properties of the DataFormWebPart, feature, site column...
View Article