Hi all, another newbie question, i am using Visual Studio 2005 (ASP.NET 2.0) and C# and i am having a problem using the OnSelectedIndexChanged method and the SelectedIndexChanged method.
Basically when i change the the drop down list nothing happpens and it doesnt even go into the DropDownList1_SelectedIndexChanged code (below). Can anyone tell my why this is happening??
My C# code is as follows
My ASP code is like this
Basically when i change the the drop down list nothing happpens and it doesnt even go into the DropDownList1_SelectedIndexChanged code (below). Can anyone tell my why this is happening??
My C# code is as follows
Code:
protected void DropDownList1_SelectedIndexChanged(object sender, System.EventArgs e)
{
Populate(1);
}
My ASP code is like this
Code:
<asp:DropDownList ID="DropDownList1" runat="server" Width="131px" AutoPostBack="True" onselectedindexchanged="DropDownList1_SelectedIndexChanged"></asp:DropDownList>