Click here to Skip to main content
15,883,623 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
Hello All,

I got below javascript error:

"Microsoft jscript runtime error sys.invalidoperationexception two components with the same id "

please help me,

I have checked that there is no repetation of any control in my design page..

then also its occured.
Some Additional Information:
C#
<Update Panel>
<ContentTemplate>
<tabContainer>
-----
<Panel>
<ModalpoupEnteder>
------other ajax control used here
</Panel>
</tabContainer>
</ContentTemplate>
</Update Panel>

Codebehind---
C#
ModalpopupExtender1.show();

then i got this Javascript error.
Posted
Updated 1-Mar-12 23:01pm
v3
Comments
Nilesh Patil Kolhapur 1-Mar-12 4:57am    
give your page code
ZurdoDev 1-Mar-12 7:52am    
Need more info.
Sergey Alexandrovich Kryukov 1-Mar-12 13:50pm    
You can catch all exception in Javascrip and present detailed exception information. Could you also make a code sample manifesting the problem?
--SA
Rockstar_G 2-Mar-12 1:07am    
there could be many various causes of the above exception,try to elaborate your question with more information please
Varun Sareen 2-Mar-12 1:15am    
more code

Hello All,


I have solved this problem myself,


After Adding Ajaxcontroltoolkit Version 3.5 instead of Ajaxcontroltoolkit Version1.0 dll,
then I got this Javascript error on Every page where updatePanel used,

Solution:
I have just added a property ScriptMode="Release" of ToolkitScriptmanager on master pages,

then , I got my project successfully run without any javascript error.
 
Share this answer
 
Comments
Dharmendra H Gupta 2-Jan-13 23:22pm    
Thanks it works....
madhuri@mumbai 3-Jan-13 1:15am    
WelCome..
Check out this forum: http://forums.asp.net/p/1459083/3352866.aspx[^]

Good luck!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900