Posted on: 5/20/2013 10:19:53 AM | Views : 194

ASP._aspx' does not contain a definition for 'DropDownList1_SelectedIndexChanged' and no extension method 'DropDownList1_SelectedIndexChanged' accepting a first argument of type '_aspx' could be found 

my code in aspx
<asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" onselectedindexchanged="DropDownList1_SelectedIndexChanged"> <asp:ListItem>Device No</asp:ListItem> <asp:ListItem>Distributor Name</asp:ListItem> <asp:ListItem>Owner Name</asp:ListItem> <asp:ListItem>Distributor Phone No</asp:ListItem> <asp:ListItem>Owners Phone No</asp:ListItem> </asp:DropDownList>
my code in aspx.cs
protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e) { if (DropDownList1.SelectedValue == "Distributor Name&qu ...

Go to the complete details ...