Strange
I have tried the following
<asp:DropDownList ID="DropDownListMake" runat="server"
CssClass="selectComparison" AutoPostBack="True"
OnSelectedIndexChanged="DropDownListMake_SelectedI ndexChanged" >
<asp:ListItem>1</asp:ListItem>
<asp:ListItem>2</asp:ListItem>
<asp:ListItem>3</asp:ListItem>
</asp:DropDownList>
--------
protected void DropDownListMake_SelectedIndexChanged(object
sender,EventArgs e)
{
int x ;
if (!DropDownListMake.SelectedIndex.Equals("-1"))
x = Int32.Parse(DropDownListMake.SelectedValue);
}
--------
and it did work
perhaps the AutoPostBack="True"
doesn't fire if the DDL isn't bound to any data
-------------------------------------------
If my answer helped you please press "Yes" bellow
Adlai Maschiach
http://blogs.microsoft.co.il/blogs/adlaim/
"Gearóid" wrote:
Sorry to repost, but please see below... this is driving me mad at
this point.
http://groups.google.com/group/micro...a7318a2f318442