Tuesday, March 20, 2012

make a SelectList object from another C# object to populate a @Html.DropDownListFor Razor control

I stole the following from here.

@model IEnumerable<Sample.Models.Product>
@{
   List<Sample.Models.Category> list = ViewBag.Categories;
   var items = new SelectList(list, "CategoryID", "CategoryName");
}
@Html.DropDownListFor(???, @items)

Monday, March 19, 2012

OLAP is online analytical processing

http://en.m.wikipedia.org/wiki/Online_analytical_processing

NonActionAttribute

...it seems one may decorate a method with this to make it not an action at a controller.

Friday, March 16, 2012

one has to have the Standard Cal and the Enterprise Cal to do InfoPath forms automation with SharePoint 2010

This movie suggests as much about eighteen minutes in. The Enterprise Cal does not include the Standard Cal.

one last posting on the Dallas Day of Dot Net convention

The best talk I saw at the Dallas Day of Dot Net convention was Jimmy Bogard on the NServiceBus service-oriented architecture tool of Udi Dahan. I sat down today to write a blog posting about it based on the notes I took, but in trying to articulate NServiceBus' doings I realized I did not know enough to "speak" intelligently on the subject. I guess a write up of what I saw is thus not to be, and, moreover, this is the last of the series of postings I will give on the conference I went to a week ago. Good times. The conference took place in the business park "neighborhood" of Irving, Texas known as Las Colinas where there are many statues of wild mustangs. In the blog posting that is not to be, I was going to use a wild mustang as a symbol for a Saga which kind of seems like a hard-to-tame, wild animal to me. Maybe you can squint your eyes and image what I would have written. :P

IEnumerable vs. List

IEnumerable is less feature-rich than List and also defers some processes until they are needed. http://stackoverflow.com/questions/3628425/linq-ienumerable-vs-list-what-to-use-how-do-they-work suggests that it may be wise to jump through some LINQ hoops while keeping a collection in the IEnumerable shape for performance before poping the IEnumerable off to a list with .ToList()

-remote

The -remote thing here is a different error on my part. I was struggling, the wrong way, to get NuGet to see beyond its local cache.