? The contains requires a listitem object and not a string/int though? Or have you assumed that the customerid below is a listitem object?
-----Original Message----- From: dotnet discussion [mailto:[EMAIL PROTECTED]] On Behalf Of Paul Jefferies Sent: 29 May 2002 10:20 To: [EMAIL PROTECTED] Subject: Re: [DOTNET] DropDownList if (dropdown.Items.Contains(customerid)) dropdown.SelectedIndex = dropdown.Items.IndexOf(customerid); Paul Jefferies Adastra Software Ltd www.adastra.co.uk You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.