Try setting the SelectedIndex to -1 instead of setting SelectedValue. On Apr 13, 5:32 pm, Aravindh <[email protected]> wrote: > Hi All, > > I am converting ASP.NET 1.1 application to 2.0. I used Visual Studio 2008 > IDE to convert the application. > > It has been converted successfully and application is compiling successfully > in 2.0 version, but I am getting a runtime unhandled exception. > > Error message: Cannot have multiple selected items to a Dropdownlist > control. > > There are around 15 to 20 dropdownlist controls are available in a > particular page. I am unable to identify the control which is raising this > error. > > I analyzed the code in that page, where in 1.1 they are trying to clear > selected value of the dropdownlist control by assigning "0" to the > selectedvalue property of the control. > > I tried to insert the controlName.ClearSelection() for all the assignment > statements of dropdownlist control, but still I am getting the same error. > > Note: If I comment all those lines, I am not getting the error. > > Please help on this. > > Regards, > > Aravindh.K
-- You received this message because you are subscribed to the Google Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en or visit the group website at http://megasolutions.net
