Programatically set OnSelectedIndexChanged for a ddl <p>a minor question but it's driving me nuts. I'm programatically generating about 50 DDLs based on a database schema (i.e. item 1 can do a,b,c item 2 can do d, e, a, etc etc).</p> <p>If I was just writing the markup, I could specify:</p> <p>asp:DropDownList OnSelectedIndexChanged="funTimes"</p> <p>and be done with it, unfortunately, I'm just not sure how to set that programatically. I found a "SelectedIndexChanged" event, but I'm not sure what I need to return in terms of an event handler when all I want to do is set the method called. I realize I could write 50 methods:</p> <p>ddl1_SelectedIndexChanged() ddl2_SelectedIndexChanged() etc etc</p> <p>but that solution isn't terribly flexible, especially when I really only want the same method called. Is there a good way to accomplish what I'm trying to do here? Any input is greatly appreciated. Thanks.</p>