DevMavens

ma•ven (mā'vən)

n.  A person who has special knowledge or experience;
an expert.

dev•ma•ven
('dev-mā'vən)

n.  An expert developer with great influence.

Bertrand Le Roy

Bertrand Le Roy, PhD, is a Program Manager in the ASP.NET team, specializing on Ajax. He represents Microsoft at the OpenAjax Alliance. He blogs about new and future features of ASP.NET, tips, tricks and samples for advanced and beginner ASP.NET developers and sometimes other random musings.


Tales from the Evil Empire | 19 Sep 2014 08:00

Joining Orchard part records in HQLSubscribe to this feed

Bertrand Le Roy writes "....In yesterday’s post, I showed the basics of HQL querying in Orchard. It is by far the most flexible way to  query Orchard’s database, but one thing I didn’t show is how this works in relation to Orchard’s content type system. Querying over..."
Read more »  Joining Orchard part records in HQL


Tales from the Evil Empire | 18 Sep 2014 07:06

Querying Orchard in HQLSubscribe to this feed

Bertrand Le Roy writes "....Orchard has two APIs on IContentManager to query content items: Query, and HqlQuery. Query is the older API, but it’s also the simplest. It’s great when you want to perform a simple query such as “get all content items with part TitlePart where the..."
Read more »  Querying Orchard in HQL


Tales from the Evil Empire | 17 Sep 2014 08:55

Referencing server-generated fields in scriptSubscribe to this feed

Bertrand Le Roy writes "....I had to fix a bug today in somebody else’s code that was caused by some Javascript referencing an element by id. The problem was that this id was assumed by the script to be “#Parameter1” whereas the server-side code generating it..."
Read more »  Referencing server-generated fields in script


Tales from the Evil Empire | 16 Sep 2014 08:04

A blogging experimentSubscribe to this feed

Bertrand Le Roy writes "....I consider blogging to be a very efficient way to help the community while promoting my own personal brand (which is important not for my oversized ego, but because I’m an independent consultant, and more visibility means more and better..."
Read more »  A blogging experiment


Tales from the Evil Empire | 15 Sep 2014 09:04

Speeding up pages with lots of media content itemsSubscribe to this feed

Bertrand Le Roy writes "....For a few versions now, Orchard has been treating media (images, videos, etc.) as content items. There is a special kind of field, MediaLibraryPickerField, that enables you to add images, or collections of images, to any content type. For example,..."
Read more »  Speeding up pages with lots of media content items


Tales from the Evil Empire | 12 Sep 2014 06:07

Deriving from a fluent classSubscribe to this feed

Bertrand Le Roy writes "....Here’s an interesting one, and maybe you can help me make my design less crappy. I have this library that I’m a little proud of, called FluentPath. It’s a fluent wrapper around System.IO that enables you to manipulate files not unlike how..."
Read more »  Deriving from a fluent class


Tales from the Evil Empire | 11 Sep 2014 01:48

Strongly-typed HTML helpers in Orchard shapesSubscribe to this feed

Bertrand Le Roy writes "....Orchard uses dynamic objects called shapes as view models. It happens commonly that you’ll want to use strongly-typed HTML helpers such as Html.TextBoxFor from within a shape’s template. Unfortunately, this is not possible: those helpers rely..."
Read more »  Strongly-typed HTML helpers in Orchard shapes


Tales from the Evil Empire | 21 Jun 2014 07:29

How to shoot yourself in the footSubscribe to this feed

Bertrand Le Roy writes "....Here’s another one to throw onto the “how to ask questions” heap. Sometimes, somebody asks a question on Stack Overflow that amounts to this: What is the best way to shoot myself in the foot? It is very tempting of course to..."
Read more »  How to shoot yourself in the foot


Tales from the Evil Empire | 21 Apr 2014 15:00

On accessing chains of potentially null propertiesSubscribe to this feed

Bertrand Le Roy writes "....Raise your hand if you’ve ever written code looking like this: var result = default(int);if (fubar != null) { var foo = fubar.Foo; if (foo != null) { var bar = foo.Bar; if (bar != null) { result = bar.Baz;..."
Read more »  On accessing chains of potentially null properties


Tales from the Evil Empire | 24 Feb 2014 16:17

Asking questions is a skillSubscribe to this feed

Bertrand Le Roy writes "....If you’re going to get into any sort of technical job, you’re going to have to ask questions. A lot of questions. Unfortunately, too few people understand how to ask questions properly. Asking questions is a skill. It has to be learnt. Here are a..."
Read more »  Asking questions is a skill


This Maven's Blog

Bertrand Le Roy

Microsoft

Redmond, WA