Category Archives: C#

Creating the Family Page – Part 7, Beginning on the Wish List

Now that all the user and role code is done, it is time to add some real functionality. This time we will add the data model for the wish list and create a basic controller and view for it. This … Continue reading

Posted in ASP.NET MVC, C#, Web | Tagged , , , , | Leave a comment

Creating The Family Page – Part 6, Role and User Management

This time we will add role management and subsequently give an administrator the ability to a manage (add/edit/delete) users. It might seem overkill to have roles on such a simple page, that will hold the content of a family of … Continue reading

Posted in ASP.NET identity, C#, HTML5, Web | Tagged , , , , | 6 Comments

Creating The Family Page – Part 4, User Accounts–Cleaning up

This will be a short and a bit boring post – it is about cleaning up. Last time we expanded on the IdentyUser Object. I also told that we are not going to use the external log in code (that is … Continue reading

Posted in C#, HTML5, Web | Tagged , , | Leave a comment

Creating the Family Page–Part 3, User Accounts–expanding the IdentyUser

The next couple of posts we will talk about user accounts. This time we will look at expanding the information stored on the user account. First we will take a look at how user account data is stored. As mentioned … Continue reading

Posted in C#, HTML5, Web | Tagged , , , | Leave a comment

Creating the Family Page – Part 2, Getting started

Last time I described what I want to do. This time I will: Create the basic web site from a template. Install the necessary frameworks Remove the parts of the template that I don’t want. Publish web site to Windows … Continue reading

Posted in C#, HTML5, Web | Tagged , , , , | Leave a comment

Creating the Family Page – Part 1, Setting the Scene

This is the first post in a series where I will create a new website for my family. While doing it I will blog about my progress. Normally I do backend stuff or LOB applications with WPF or Windows Forms. … Continue reading

Posted in C#, CSS3, HTML5, HTML5, Ikke kategoriseret, javascript, Web, Windows Azure | Tagged , , , , | Leave a comment

Event delegates and exception handling

Delegates This blog post will focus on handling exceptions thrown by event delegates. But first we will briefly discuss what a delegate is. If you know C or C++ it is natural to think of delegates as function pointers. Why … Continue reading

Posted in C# | Leave a comment

Trying out Windows Azure Storage

I am part of the team behind a set of web pages at Myvoices.com where you can search for voice talents (people speaking in commercials, narrating documentaries etc.) One of the features of these sites, is that you get to listen … Continue reading

Posted in C#, Cloud Computing, Windows Azure | Tagged , , , , | Leave a comment

LINQ – the order of elements when using Where()

Last week I was asked if the order of elements found using a where clause was guaranteed to be the same as the order of the original collection. That question is hard to answer. In the normal case (where nobody has overwritten … Continue reading

Posted in C#, Linq | Tagged , , , , , , | Leave a comment

LINQ and iterating over null collections.

Ok, todays title is weird, but I have come up with a little hack, that will make the code easier to read (sometimes). At work we have some pretty clear specifications, that says how to fill out some properties in … Continue reading

Posted in C#, Linq | Tagged , , , , | Leave a comment