apart from Manas Answer, in ASP.NET
DropDownList [
^]is not postback on selected item change by default. Even you have added
SelectedIndexChanged [
^]event to your DropDownList it will not excute it unless you set the
AutoPostBack [
^]Property as true. Sample code :
<asp:dropdownlist id="ColorList" xmlns:asp="#unknown">
AutoPostBack="True"
OnSelectedIndexChanged="Selection_Change"
runat="server"></asp:dropdownlist>
After you set above property, put break point inside the event handler and run the web application. You can check what is the value you receive as Text property of the DropDownList. According to that you can change the code or it will help you to find solution for why your code block not functioning as you expected.
additional learning resources for debugging if you interested:
Mastering Debugging in Visual Studio 2010 - A Beginner's Guide[
^]
Advanced Debugging in Visual Studio[
^]