Connecting Tech Pros Worldwide Forums | Help | Site Map

dropdownlist postback not firing

=?iso-8859-1?B?R2VhcvNpZA==?=
Guest
 
Posts: n/a
#1: Mar 5 '07
Hi,

Wierd problem.

Using ASP.NET 2.0.

Have a DropDownList
- <asp:DropDownList ID="DropDownListMake" runat="server"
CssClass="selectComparison" AutoPostBack="True"
OnSelectedIndexChanged="DropDownListMake_SelectedI ndexChanged" />

Have the corresponding codebehind event handler
- protected void DropDownListMake_SelectedIndexChanged(object sender,
EventArgs e)
{
if (!DropDownListMake.SelectedIndex.Equals("-1"))

this.ChangeMake(Int32.Parse(DropDownListMake.Selec tedValue));
}

But when I select an item from the dropdownlist the page just
refreshes and no event fires.

When I debug the code on my Page_Load (C#) the if (!this.IsPostBack)
returns false i.e. it's not catching the postback. And the event for
the dropdownlist Selected Index Change isn't firing.

ViewState is enabled.

Does anyonw have any ideas??


=?iso-8859-1?B?R2VhcvNpZA==?=
Guest
 
Posts: n/a
#2: Mar 5 '07

re: dropdownlist postback not firing


Sorted - see
http://groups.google.com/group/micro...d240f13ed4926e


Closed Thread