Link to home
Start Free TrialLog in
Avatar of jdana
jdanaFlag for United States of America

asked on

ASP.NET - Can't get SelectedIndexChange to fire.

I have a DDL on a standard ASP page:
   <asp:DropDownList ID="ddlReportCategoryID" runat="server" Style="width: 370px; float: left;">
   </asp:DropDownList>

Open in new window

I've attempted to associate it with with the SelectedIndexChanged event:
   Protected Sub ddlReportCategoryID_SelectedIndexChanged(ByVal sender As Object, ByVal e As EventArgs) Handles ddlReportCategoryID.SelectedIndexChanged
      MsgBox("hello")
   End Sub

Open in new window

No matter what I do, I can't get the code to fire:

- I tried making a new DDL with a couple ListItems.  SelectedIndexChanged didn't fire.
- I tried placing the DDL on a new page.  SelectedIndexChanged didn't fire.

All other ASP on the page seems to be working just fine.





ASKER CERTIFIED SOLUTION
Avatar of Saqib Khan
Saqib Khan
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
try this

<asp:DropDownList ID="ddlReportCategoryID" runat="server" Style="width: 370px; float: left;" AutoPostBack="True" >
   </asp:DropDownList>
anurag_onnet i have already suggestion that solution.
Avatar of jdana

ASKER

adilkhan,

I love the simple solutions.  Thanks.

J