Click here to Skip to main content
15,896,606 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi friends,

I need a help. I created a website with a master page. In this I am using ReportServer to view the reports. I also created a tree menu for this website using JavaScript.

The problem is after navigating to the page containing the ReportViewer,
when I click the menu node a JavaScript Error occurred. Menu items are HyperLink so it works well.

Here is the error. Alert message like Unable to locate control: undefined
MSIL
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727)
Timestamp: Sat, 18 Dec 2010 05:28:48 UTC

Message: Object required
Line: 537
Char: 5
Code: 0
URI: http://localhost:2318/MySite/Reserved.ReportViewerWebControl.axd?OpType=Resource&Version=8.0.50727.42&Name=Scripts.ReportViewer.js


any help ....
Posted
Updated 18-Dec-10 23:41pm
v4
Comments
Wild-Programmer 18-Dec-10 0:53am    
Seems like some object is getting Null assigned. Try to debug the java script code and get the line where error is throwing. To bypass the error (in case) use try catch.
Ankur\m/ 18-Dec-10 1:02am    
The line number and the character where the code breaks are given. Moreover the error is also given. Debug it and find out the reason. And if you can't, you need to post the relevant code here.
thatraja 20-Dec-10 2:13am    
show your code

Hi,


In your Page after the Page directive you have give the Reference to your ReportServer.
 
Share this answer
 
try removing
XML
<FixedHeader>true</FixedHeader>

from your rdlc xml

http://dnknitro.blogspot.sg/2009/08/object-required-zofnhotofnhoffsettopzm.html[^]
 
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