Click to See Complete Forum and Search --> : Target new window


unseth
09-22-2006, 02:11 PM
Background: Previous Intranet web site was built with Frames and all worked fine, but we now have a dedicated server running IIS that I can now use ASP pages with under the .NET2.0 framework.



Software: Visual Web Development Express



1) Using a Menu Control on the Master Page. One of my links need to open a page in a new window. I have tried target="_blank" in the Web.sitemap but that does not work so I am unsure where to place this or if it is another code that I need instead.



If anyone has a suggestion, a article to read, a video, a forum to read, anything except telepathic (not to good at that one)...any, any, any assistance would greatly appreciated.

sirpelidor
09-22-2006, 10:47 PM
<siteMapNode url="newWindow.aspx" title="New Window" target="_blank" />


on databinding...


<asp:MenuItemBinding DataMember="siteMapNode" TextField="title" NavigateUrlField="url" TargetField="target" />


note: make sure you have target field within each sitemapnote, leave the property blank for it to open within current window