In addition to jim answer, use ClientID property of the control. i.e
HtmlSelect drpSkills_ctrl = (HtmlSelect)FindControl(drpSkills.ClientID)
In addition to this ,the way the data is bound to
ListBox
or
HtmlSelect
is very important. i.e Are you binding to the data to a Page Load by checking a
PostBack
. If you didn't check a PostBack, then you won't be able to get Selected item from the list. Here is a good MSDN example.
HtmlSelect Server Control Declarative Syntax[
^]