OnSelectedIndexChanged event not firing
Hi, I've been trying to get the OnSelectedIndexChanged event to fire, and it just won't.
In my asp code, i have this wrapped around my repeater (pseudo code snippet):
<ASP:Repeater blahh blah
<ASP:ItemTemplate>
<asp:DropDownList ID="roleDropList" DataValueField="RoleType"
DataTextField="RoleType"
DataSource= blah blah
SelectedIndex= blah blah
Visible="true"
AutoPostBack="True"
OnSelectedIndexChanged="DropDown_SelectedIndexChan ged"
runat="server">
</asp:DropDownList>
ok.. so i've added the OnSelectedIndexChanged attribute to the dropdownlist, and specified the function DropDown_SelectedIndexChanged that's gonna get called everytime the dropdownlist menu selection changes right?
now, in my C# code in the .cs file i have this:
protected void DropDown_SelectedIndexChanged(object sender, EventArgs e)
{
Response.Write("Test Test Test");
}
I made it do a response.write just to see if the event fires. But nothing happens.
What else must i do to handle the events properly??
Thanks in advance!
|