Hi,
I have a webdatatree and a dropdown in the same page.for dropdown SelectedIndexChanged event i am getting the following error
Microsoft JScript runtime error: Sys.InvalidOperationException: A control is already associated with the element.
Please help me.
Are you using an update panel? Do you have a web data menu on the page as context menu for the web data tree? I've seen this error when control is placed in update panel and postback is done from the control. But for some reason the control haven't been disposed properly before doing the postback and it stays registered in the update panel's underlying structures. Please upload a sample to debug the control. If you have WebDataMenu inside the update panel upgrade to latest service release and this error would be gone.
Hope this helps.
Thanks,
Lubomir
ASP.NET Team Lead
i am using updatepanel and webdatamenu is not used in the page.