Hi Ed,
Please note that hyperlink to the target (product) page is rendered to
client and handled by the browser instead of the server-side code; that's
why you only navigate to the target page after you clicked a node second
time: if you hover your mouse cursor on the node the first time, you should
see the navigation target URL is empty then.
Two options to fix this:
1) You can set the NavigateUrl property when binding the Treeview (i.e.,
not set at SelectedNodeChanged event)
2) If option 1) is not possible, you should be able to call
Response.Redirect() in SelectedNodeChanged event to directly instruct the
browser to go to target page.
Let me know if this works or not.
Regards,
Walter Wang (wawang@online.microsoft.com, remove 'online.')
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
Ed Dror - 26 Jun 2007 16:13 GMT
Walter,
Solution 2 works, I replace the code with
Response.Redirect(Me.TreeView1.SelectedNode.Text + ".aspx")
Thanks again
> Hi Ed,
>
[quoted text clipped - 27 lines]
> This posting is provided "AS IS" with no warranties, and confers no
> rights.