473,386 Members | 1,679 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

ASP.NET 2.0 Menu control targets and selecting

I have a Menu control that populates from a SiteMap file. It's on my
Master Page and usually loads content pages.

I've got 2 problems at the moment:

- Some of my menu items point to an external web site or to a PDF
document instead of just loading the next internal page. I want these
external links to open in a new browser window while retaining the
default target of _self. How can I do this? The only stuff I've seen so
far is based around using <menuItem>s.

- My parent menus are selectable and trigger a postback. I don't want
them to do this. i just want my leaf nodes to be selectable. I think
this might have something to do with using templates but the info I've
found is vague and doesn't apply to menus populated by SiteMap files.

I also can't find much by way of a reference for writing templates.

Thanks
Mike

Mar 15 '06 #1
1 1322
Mike,
I have the same questions you have. I have searched the web for answers to
these questions to no avail. I have been using a third party menu control
from APNSoft which is capable of doing this. I would have thought that if
Microsoft was going to include a nice configurable menu control in ASP.Net
2.0 they would have included the ability to control the target of the
individual menu items. I am trying to use the control with a SQL sitemap
provider and I cannot even include a link to an external site. I have seen
one "workaround" for that which involves loading a bogus menu item and then
modifying it at some point during loading of the page. This does not seem to
be a desirable way to get around this seeming deficiency to me. If you have
found the solution to these problems, please post them here.
Thanks
--
Owen
"m_********@yahoo.com.au" wrote:
I have a Menu control that populates from a SiteMap file. It's on my
Master Page and usually loads content pages.

I've got 2 problems at the moment:

- Some of my menu items point to an external web site or to a PDF
document instead of just loading the next internal page. I want these
external links to open in a new browser window while retaining the
default target of _self. How can I do this? The only stuff I've seen so
far is based around using <menuItem>s.

- My parent menus are selectable and trigger a postback. I don't want
them to do this. i just want my leaf nodes to be selectable. I think
this might have something to do with using templates but the info I've
found is vague and doesn't apply to menus populated by SiteMap files.

I also can't find much by way of a reference for writing templates.

Thanks
Mike

May 16 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Summasummarum | last post by:
Hi, As subj says. A simple menu is defined in a table. But how to extract it? Heres the deal: Table menu has these 3 columns: menuid parent menudesc Ok this should be easy right?...
2
by: Leon | last post by:
Hi! I need to change form's standard context menu code. Eg. I want to order records by my own code. Can I make it, or must I create other context menu and link it to my form?? I'd like to...
4
by: Aaron Queenan | last post by:
How can I use the designer to add a context menu to a class which inherits from a control, e.g. treeview, without adding the context menu to a form? For example, to add a context menu with...
4
by: Mark Parter | last post by:
I have a master page which contains a Menu control and a SiteMapPath control, both are bound to the same web.sitemap XML file. Say I have 2 pages, Page 1 and Page 2. Now Page 2 can only be accessed...
1
by: Mark | last post by:
Hello, I have a master page with a horizontal menu control which parts of disappear when dropping down across content controls. How do you get the menu control to show no matter what it's...
0
by: R.A.M. | last post by:
Hello, I need your help with a problem concerning Menu control. Could you help me please? I have created custom Menu: public class DemoMenu : Menu { public DemoMenu(string ID, string...
1
by: R.A.M. | last post by:
Hello, I need your help with a problem of menu definition. Plase help, I have little experience. I have created custom Menu, which I want to put on a few .aspx pages: public class DemoMenu :...
1
by: rdemyan via AccessMonster.com | last post by:
I have custom menu bars for Admins and Users. I now need to add a new group call 'DataEntry'. Their custom menu bar will be very similar to that for Admins, with just a few items removed. So, is...
0
by: divya1949 | last post by:
Create a windows c# application which will Read a xml file and populate nodes in the treeview. 1 On selection of treenode display the child nodes of that node in listview control 2. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.