Click here to Skip to main content
12,454,104 members (57,557 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C# ASP.NET Javascript
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:
<Update Panel>
<ContentTemplate>
<tabContainer>
-----
<Panel>
<ModalpoupEnteder>
------other ajax control used here
</Panel>
Codebehind---
ModalpopupExtender1.show();
then i got this Javascript error.
Posted 29-Feb-12 22:20pm
Updated 1-Mar-12 23:01pm
v3
Comments
Patil_Nilesh 1-Mar-12 4:57am
   
give your page code
ryanb31 1-Mar-12 7:52am
   
Need more info.
SAKryukov 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
Ravikumar.Gunge 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
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

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.
  Permalink  
Comments
Dharmendra H Gupta 2-Jan-13 23:22pm
   
Thanks it works....
Madhuri Patil 3-Jan-13 1:15am
   
WelCome..
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

Check out this forum: http://forums.asp.net/p/1459083/3352866.aspx[^]

Good luck!
  Permalink  

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160826.1 | Last Updated 15 Jan 2013
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100