Welcome to Bangladesh Microsoft Technology Community Sign in | Join | Help

August 2008 - Posts

ASP.NET Tips: DropDownList.ClearSelection() to avoid "Cannot have multiple items selected in DropDownList"

Problem I was facing the following Exception when I was programmatically assigning Selected Value of a DropDownList with the following piece of code.ListItem item = DropDownListTest.Items.FindByValue("Test");  if (item != null)    
posted by Shahed | 0 Comments

Reflection Tips: Generate Mock objects for Test Cases.

Filling up Mock objects with random data is possibly one of the most time consuming and boring chapter of writing test cases. Let say we have the following classes and we want to write some mock objects.   Mock Object Code Example       
posted by Shahed | 0 Comments