Click here to Skip to main content
15,742,377 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

I have doubt regarding in Treeview control when i am trying to click on link present to see my child controls its showing some javascript error mssg javascript:Treeview_ToggleNode() some in my application nothing javascript has been there but it was showing this error when i am trying to click on parent node to see my child node nothing wrong there. what should i do want to see child node when parent click in my treeview.

XML
<asp:TreeView ID="TreeView1" runat="server" >
    <Nodes>

            <asp:TreeNode Text="Hi" Value="Hi">
                <asp:TreeNode Text="Hello" Value="Hello">
                    <asp:TreeNode Text="H r u" Value="H r u">
                </asp:TreeNode>
            </asp:TreeNode>
        </asp:TreeNode>
    </Nodes>
</asp:TreeView>


I am using above simple code to display tree view.

When i mouse over of treeview it's showing javascript error(javascript:Treeview_ToggleNode()).

The same code it's working fine in another system.

Could any one help me on how to fix this issue.

Thanks
venkat.
Posted
Updated 30-Jul-12 20:09pm
v3
Comments
[no name] 30-Jul-12 15:13pm    
Since you did not show any code, the only thing that I can think of is the you are using a javascript treeview that requires javascript.
Sergey Alexandrovich Kryukov 30-Jul-12 22:14pm    
Not enough information. A short but complete code sample (probably, not your existing code, but a sample) could help to help you. If you can do it, please use "Improve question" above.
--SA
venkatrao palepu 31-Jul-12 6:01am    
Hi Sergey,

I have updated the Question with code that i am using. Could you please help me if you have any idea?

Thanks
venkat.
Sergey Alexandrovich Kryukov 31-Jul-12 11:31am    
I see nothing which could prevent expand/collapse here, perhaps because this is incomplete sample. You could try to simplify code or create a separate sample without much processing to observe expanding/collapsing and add one step at a time to see where did you screw up it.
--SA

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


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