You haven't added any delegates to the SelectedIndexChanged
event.
Add OnSelectedIndexChanged
to the parameters in the asp:DropDownList tag, like so:
<asp:DropDownList ClientIDMode="Static" OnSelectedIndexChanged="ddlMain_SelectedIndexChanged" ID="ddlMain" name="searchPhys" style="width: 365px;" class="default" runat="server" AppendDataBoundItems="true" >
EDIT
I just noticed you're actually missing the AutoPostBack
event as well - it should be set to true
, as updating the selection without submitting the form will not fire a postback event, unless AutoPostBack
is set to true.