Click here to Skip to main content
15,892,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi All,

I get the following error intermittently when I try loading my webpage .

Microsoft JScript runtime error: Sys.InvalidOperationException: Component 'TabContainer1' was not found.
But the TabContainer1 is in fact there in the code.
This error comes only intermittently ,so if you refresh the page when the error comes, its loads normally the next time.
I googled a lot about this error and finally found that this is an existing bug .

Is there any workaround for the same ?
Posted
Updated 5-Aug-12 22:02pm
v3
Comments
Joan M 6-Aug-12 3:41am    
Urgent or not, with this amount of information we can't help.
Ganesh Nikam 6-Aug-12 4:47am    
hey you have same problem in different browser or only in specific browser?

1 solution

Your question is telling the answer. Your javascript document.getElementById is not able to find your TabContainer1.

Try this:

JavaScript
var tab = $find('<%=TabContainer1.ClientID%>');


--Amit
 
Share this answer
 
v2
Comments
lebna thomas 6-Aug-12 2:37am    
Yes, the error says that TabContainer1 cannot be found. But it is there in the code. And also, this error comes only intermittently. So if we refresh the page after the error comes, the page loads normally.
_Amy 6-Aug-12 2:46am    
I missed the "." Now check my updated answer. And remember this javascript should be placed in HTML page under Script only. If you are using external javascript file the try adding the attributes...
lebna thomas 6-Aug-12 3:08am    
I am sorry, But i dont have a document.getElementById(TabContainer1)in the code
_Amy 6-Aug-12 3:16am    
I can't see your code here that why the problem is coming. Can you add your code here so that I can check it?

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