Using dropdownlist is, for me, a good thing, It allows you to avoid input error or make some coherent choice compared with a previous input.
The deal in this post, is to make a coherent cascade dropdownlist. For example, you choose a country and you would like to auto-populate the dropdownlist States. It is a common thing in web development. To do this in ASP.NET MVC, the Ajax Controller Toolkit does not work without modifying some code. It will take you more time to setup it than it takes to write the right code in a “pure” html way with Jquery.
Filed under: .NET on May 25th, 2009 | No Comments »
using System.Reflection; //the library to use
Code to put in your method :
Type type = objectforloop.GetType();
PropertyInfo[] properties = type.GetProperties();
foreach (PropertyInfo property in properties)
{
if (property.GetValue(objectforloop, null) != null)
{
Console.WriteLine("Name: " + property.Name + ", Value: " + property.GetValue(objectforloop, null));
}
}
Filed under: .NET on May 25th, 2009 | No Comments »
I am currently working for a project in my job where I have to write an application which manage the active directory by a website application. I know that is not the best way to manage users in Active Directory but, well,….
First, I decided to use the linq for Active Directory of Bart Desmet, I know it’s a pre-alpha version but we do not have a lot of time and I really want to use all the facilities you have when you developed with linq. Here is the link. If you used linq to Active Directory, you should have saw that you do not have method to create. Therefore, I decided to use linq to AD for the “get” method and the “classic” method for creating users.
If you want to create a user in Active Directory, you should follow theses steps :
1) Create the user
2) Set the user’s password
3) Activate the user
Filed under: .NET on May 22nd, 2009 | No Comments »
Simply, decorate your class or function with this code :
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "1000:YouShouldntBeCoding", MessageId = "1#",
Justification="Leave me allone annoying compilator!")]
You can find more info : here
I found that information in the Rob Conery’s blog.
Filed under: .NET on May 14th, 2009 | No Comments »
I know it is a bit weird to begin a CMS application by implementing a Membership system but the simple raison why I start up with that is because I needed for my work (as you can see in my previous post ).
Too often, I saw developers rewriting their own membership system in place to use what the framework (no matter which one) can offer.
Filed under: Kiwi MVC on May 14th, 2009 | 1 Comment »
A colleague gave me an article about things you have to do and things you do not have to do during a project. I found it very funny, true and usefull. Thus, I allow myself to recopy it on my blog.
Filed under: Agile on May 13th, 2009 | No Comments »
Well, with all the acronyms which exist in the software development world, Harry Potter should have found a lot of words for his magic formulas. Today, I will explain you two of them, AZAM and ADAM.
Filed under: .NET on May 12th, 2009 | 3 Comments »
In this part, I am going to explain you how to setup an MVC .Net application.
I will tell you often “I am not a senior .Net developer”, I assume that I can make some faults and have totally wrong. If you think I am, do not hesitate to contact me at pierre@dervalp.com or leave me a comment in this blog. I would enjoy discussing with you. I am open-mind and I know I am far to know everything in software development. This blog would pretend to help people like me to find their way to make a MVC application using TDD and implement some well-known patterns.
Filed under: Kiwi MVC on May 8th, 2009 | 3 Comments »
If Ben Harper was a developper, sure, he would have use Scrum.
First of all, Scrum is just a methodology and not a magic word that would erase all the problems during your development lifecycle. Rather than invent a new definition of Scrum, look at the wikipedia definition:
Scrum is an iterative incremental process of software development commonly used with agile software development.
The significant word here is iterative.
I have sometimes lack of motivation, sure, you sometimes have too, so let’s begin with a too classic Developper Story :
Your project manager arrive with a really really really important project from the business with a f***** high top priority. The release date is tomorrow and you have half a post-it as specifications.
Filed under: Agile on May 8th, 2009 | 2 Comments »