Thank you for your time in responding to my query.
Here is an example how I figured it would work ... Note the "Target"
tag's on the url's that are PDF's
<siteMapNode title="Lakeridg e - Home Page" description=""
url="LakeridgeW ater.aspx">
<siteMapNode title="Articles of Incorporation" description=""
url="Articles.a spx" />
<siteMapNode title="Minutes for 2006" description="" >
<siteMapNode title="Septembe r 2006" description=""
url="minutes091 2.pdf" target="_blank"/>
<siteMapNode title="August 2006" description=""
url="minutes080 6.pdf" target="_blank" />
<siteMapNode title="July 20, 2006" description=""
url="minutes072 0.pdf" target="_blank"/>
<siteMapNode title="July 11, 2006" description=""
url="minutes071 1.pdf" target="_blank"/>
</siteMapNode>
<siteMapNode title="Bylaws" description="" url="bylaws.asp x" />
<siteMapNode title="Plot Map" description="" url="plotmap.as px" />
</siteMapNode>
</siteMap>
I do not want it at the Treeview level. That means that all the
sitemapnodes will open up in a new window. I need to be able to pick
and choose what the target is.
I have some documents that are PDF documents, I need to open them up in
a new window so I do not loose the navagation.
I tried your sample code on my master page (I use vb not c#, sorry).
If I could get this to work, then I could set the e.Node.Target =
"_blank" if the url ends with "PDF". But, I could not get it to work.
It looks like you can overide the sitemap at databound time, but it
did not execute.
Protected Sub MyTreeView_Tree NodeDataBound(B yVal sender As Object,
ByVal e As TreeNodeEventAr gs)
If e.Node.Navigate Url = "[url]" Then
e.Node.Target = "_blank"
End If
End Sub
I put a breakpoint here but it did not stop on this subroutine. I put
this on the masterpage, is there somewhere else to put it?
Juan T. Llibre wrote:
re:
What am I missing? The only place I saw the target tag was at the treeview level.
Robert Haken, MVP, provided this answer...
---000---
For all TreeView nodes, you can set
MyTreeView.Targ et = "_blank"; // or any other target
for only some of them, you can use the TreeNodeDataBou nd event:
protected void MyTreeView_Tree NodeDataBound(o bject sender, TreeNodeEventAr gs e)
{
if( e.Node.Navigate Url == "[url]" ) // get only this one item
e.Node.Target = "_blank"; // or any other target
}
---000---
re:
Does anyone have a work around for this Design Flaw?
Why do you consider that a "design flaw" ?
Which functionality do you think is missing ?
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== =====
<ne*****@lni.wa .govwrote in message news:11******** *************@i 42g2000cwa.goog legroups.com...
I can't beleive that Microsoft would create the whole Sitemap XML
datasource process but not have a TARGET tag. What am I missing? The
only place I saw the target tag was at the treeview level. Please tell
me that something this basic is at the siteMapNode level and not the
Treeview level?
Does anyone have a work around for this Design Flaw?