CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 2/20/2008 1:51:03 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 3 Views: 323 Favorited: 0 Favorite
4 Items, 1 Pages 1 |< << Go >> >|
korzaun
Asp.Net User
TreeView and the NavigateUrl not working2/20/2008 1:51:03 PM

0

Hello,
in order to represent the structure of a online class I have used the ASP.Net 3.5 TreeView control (the same of the 2.0, I suppose).

The tree is correctly generated with all the nodes and leaves; in case of a leaf, the corresponding TreeNode is created by setting the NavigateUrl property to a certain page that shows some multimedia content.

By going over that leaves with the mouse, the browser shows in the lower toolbar the correct address of the linked page.
But unfortunately, by pressing that node nothing happens!

I've tried to set also the Target property of the TreeNode but it seems not to work,also because in my case I do not want to open the linked page in a frame or in external window but only to redirect the browser to the new page.

Any help?

Thanks,
Davide

chris.coursey
Asp.Net User
Re: TreeView and the NavigateUrl not working2/20/2008 2:16:08 PM

0

Here is an example of a tree view.  Notice that I supplied the "http://" for the "Google" and "Yahoo" nodes.  The "MSN" node does not have "http://" and will not work. 

 

        <asp:TreeView ID="TreeView1" runat="server">
            <Nodes>
                <asp:TreeNode Text="Class" Value="Class Links">
                    <asp:TreeNode NavigateUrl="http://www.google.com" Text="Google" >
                    </asp:TreeNode>
                    <asp:TreeNode NavigateUrl="http://www.yahoo.com" Text="Yahoo">
                    </asp:TreeNode>
                    <asp:TreeNode NavigateUrl="www.msn.com" Text="MSN"></asp:TreeNode>
                </asp:TreeNode>
            </Nodes>
        </asp:TreeView>
 
-Chris


Don't forget to click "Mark as Answer" on the post that helped you. This credits that member, earns you a point and marks your thread as Resolved so we will all know you have been helped.
korzaun
Asp.Net User
Re: TreeView and the NavigateUrl not working2/20/2008 2:29:56 PM

0

Dear Chris, thanks for your help.

Unfortunately I build programmatically my TreeView so I cannot apply directly this solution.

In my case, the TreeNode is build accordingly the following instruction:

TreeNode t_slide = new TreeNode("<table width='100px' class='testo11'>" + l.Titolo + "</table>", "", "", "disc_view_lesson.aspx?id_lesson=" + s.ID, "");

My page is internal to my webiste so I do not need to use the "http://". Nevertheless, also if for a test I have put a static address of the type http://www.google.com in the TreeNode constructor, it does not work.

Amanda Wang - M
Asp.Net User
Re: TreeView and the NavigateUrl not working2/22/2008 3:20:15 AM

0

Hi,

 Base on your descrition, you click on the treenodes, but there is nothing happen, right?

Whether is there some javascrit error message in the browser's bottom? maybe you need to post more details here, so we can use it to repro your problem as possible as we can, which will be helpful to find the cause of the problem.

If you want to open a new wind when you click on the treenode, you should set the treenode's targer is _blank.

 


Please remember to mark the replies as answers if they help and unmark them if they provide no help.


Yours sincerely,
Amanda Wang
Microsoft Online Community Support
4 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Pro ASP.NET 2.0 in C# 2005 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1464, Published: 2006
Pro ASP.NET 2.0 in C# 2005 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1255, Published: 2005
PROFESSIONAL ASP.NET 3.5 IN C# AND VB Authors: Bill Evjen, Scott Hanselman, Devin Rader, Pages: 1728, Published: 2008
Core Internet application development with ASP.NET 2.0 Authors: Randy Connolly, Pages: 1049, Published: 2007
ASP.NET unleashed Authors: Stephen Walther, Pages: 1459, Published: 2003

Web:
Re: Treeview SelectedNodeStyle Problem Jul 4, 2006 ... As per your coding once you click the TreeNode its NavigateUrl property is executed , so that the OnSelectedNodeChange event is not getting ...
.NET ASP.NET webcontrols ASP.NET TreeView control bug with ... May 27, 2008 ... NET TreeView control bug with NavigateUrl and Target - Per ... set to be " Navigation Only" and not interfere with the regular nodes. ...
TreeView with XML, NavigateUrl problem - ASP.NET Forums ... frame is changing. the navigaturl is not working in my XML file ? now my questions? is ist possible to work with navigateurl in a xml? ...
Feedback: Treeview SelectedNodeStyle not applied when NavigateURL used Description. Treeview SelectedNodeStyle not applied when NavigateURL used E.g. when Treeview in Navigate Mode. Comments. Thank you for your feedback. ...
Treeview and NavigateURL problem - ASP.NET Forums Since you are using Navigate url property your selected node changed event wont trigger. So we cannot retrive the value ( not Text) of the ...

Treeview with navigateurl and populateondemand does postback first ... Treeview with navigateurl and populateondemand does postback first time each node clicked, ... form not working · treeview updation in data base ...
TreeView OnSelectedNodeChanged does not execute - ng.asp-net-forum ... In fact, if the node's navigateurl is not null or empty, the page will be redirected to the navigateurl of ... theme is not working because of location tag ...
Treeview display problems .. nodes not aligned - ng.asp-net-forum ... treeview with xml, navigateurl problem · treeview javascript problem · treeview question. ... oncheck event is not working on treeview ...
Menu ItemClick and NavigateURL - ng.asp-net-forum ... I reset the navigateURL property of a MenuItem object so that I could write code .... tree view is not working in my webcontrol · navigation drop down menu ...
Dynamic QueryString in TreeView Nodes - ng.asp-net-forum ... I am trying to display a treeview with main nodes (not starting from root) and in between a ... not left-aligned · fixed column widht not working . ...












why is iscrosspagepostback still evaluating incorrectly?

asp:menu control security

disabling postback in a asp menu with vs2008 and net 3.5

basic treeview issue

i'd like dynamic titles and meta tags for every page on my site

page not displaying sitemaster and css layout/format

xml menu

building sitemap from database null value error using iif

asp:menu orientation

problem with td width set to 100%

setting keys for sitemapnodes

custom page base referencing my master page type.

menu templates

master page???

masterpage

controls on master are appearing twice in browser, only once in design view.

menu navigation control overlapping with text labels - need help, please

how to leave the white spaces at left and right of the web without affecting the contents in the middle?

setting application-wide master page

contentplaceholder problem

master.findcontrol problem

tables

adding a link tag to a master page

master page mystery event solution

a simple treeview question

trouble using javascript with masterpages/content pages

how to make panel 'visible' programmatically using findcontrol

show different content pages based on selction in master page without refreshing

trouble passing menuitemclick along

master page controls trigger invalid postback errors on contentpages

 
Search This Site:

 
  Privacy | Contact Us
All Times Are GMT