I am currently elbow deep in the development of my first module, and I have come oh so close to having something working, only for it to be snatched away. I now ask the forum for help in the hopes that they can help me figure this out. The module is called "Discovery" and it's basically a simple image gallery.
Question in a nutshell: Why doesn't DropDownList post back with the correct selection?
Here are a few choice selections from my .ascx file:
EditDiscovery.ascx
This is the Add functionality from the codebehind file. It's written in C#. Not bad for somebody who didn't know C# a few days ago, hrm?
EditDiscovery.ascx.cs
What I have discovered is that, for some reason, the DropDownList doesn't seem to remember what item you have selected when you hit the add button, instead deciding to always return the very first item in the list. What gives?