473,385 Members | 1,944 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,385 software developers and data experts.

more menu problems - again

hey

asp.net 2.0

I'm creating a web portal using master pages and sitemaps!

My web portal consist of 2 menus (a header menu which goes horizontally
across the top of the page. And a sidebar menu to the left. The menuitmes
shown in the sidebar menu is dependent on what menuitem is selected in the
main menu.)

In one of the webpages a repeater control displays a list of data. Each item
in the repeater control has a link to another page displaying more info
about the item (item in repeater control). My problem is that when showing
this page with detailed info the sidebar menu don't show any menuitems. I
want it to display "ItemA", "ItemB" etc (part of my sitemap is listed
below).

Yes, the parent node of "ItemA", "ItemB" (I refer to my sitemap below) is
empty, it's because I don't want it to be displayed in the main menu...
maybe it should have a value so the .sitemap knows what child menuitems to
display??

This is the code that adds the links to the items in the repeater control:
link =
(System.Web.UI.HtmlControls.HtmlAnchor)e.Item.Find Control("LinkToProfile");
link.HRef = "~/Member.aspx?uid=" + subscriber.UserName;

Maybe I could solve this problem by substituting the HREF of the link
(System.Web.UI.HtmlControls.HtmlAnchor, see my code above), with a call to a
method. Then this method could do a Server.Transfer! But I don't know how to
call a method from a link...

Maybe there are better solutions to this problem?

<siteMapNode url="~/Network.aspx" title="Network" description="" >
<siteMapNode url="~/Search.aspx" title="Search" description="" />
<siteMapNode url="" title="Invite" description="" />
</siteMapNode>
<siteMapNode url="" title="" description="" >
<siteMapNode url="" title="ItemA" description="" />
<siteMapNode url="" title="ItemB" description="" />
<siteMapNode url="" title="ItemC" description="" />
<siteMapNode url="" title="ItemD" description="" />
<siteMapNode url="" title="ItemE" description="" />
<siteMapNode url="" title="ItemF" description="" />
<siteMapNode url="" title="ItemG" description="" />
</siteMapNode>

Any suggestions?

Jeff
Jul 26 '06 #1
1 1221

"Jeff" <it************@hotmail.com.NOSPAMwrote in message
news:uU**************@TK2MSFTNGP04.phx.gbl...
hey

asp.net 2.0

I'm creating a web portal using master pages and sitemaps!

My web portal consist of 2 menus (a header menu which goes horizontally
across the top of the page. And a sidebar menu to the left. The menuitmes
shown in the sidebar menu is dependent on what menuitem is selected in the
main menu.)

In one of the webpages a repeater control displays a list of data. Each
item in the repeater control has a link to another page displaying more
info about the item (item in repeater control). My problem is that when
showing this page with detailed info the sidebar menu don't show any
menuitems. I want it to display "ItemA", "ItemB" etc (part of my sitemap
is listed below).

Yes, the parent node of "ItemA", "ItemB" (I refer to my sitemap below) is
empty, it's because I don't want it to be displayed in the main menu...
maybe it should have a value so the .sitemap knows what child menuitems to
display??

This is the code that adds the links to the items in the repeater control:
link =
(System.Web.UI.HtmlControls.HtmlAnchor)e.Item.Find Control("LinkToProfile");
link.HRef = "~/Member.aspx?uid=" + subscriber.UserName;

Maybe I could solve this problem by substituting the HREF of the link
(System.Web.UI.HtmlControls.HtmlAnchor, see my code above), with a call to
a method. Then this method could do a Server.Transfer! But I don't know
how to call a method from a link...

Maybe there are better solutions to this problem?

<siteMapNode url="~/Network.aspx" title="Network" description="" >
<siteMapNode url="~/Search.aspx" title="Search" description="" />
<siteMapNode url="" title="Invite" description="" />
</siteMapNode>
<siteMapNode url="" title="" description="" >
<siteMapNode url="" title="ItemA" description="" />
<siteMapNode url="" title="ItemB" description="" />
<siteMapNode url="" title="ItemC" description="" />
<siteMapNode url="" title="ItemD" description="" />
<siteMapNode url="" title="ItemE" description="" />
<siteMapNode url="" title="ItemF" description="" />
<siteMapNode url="" title="ItemG" description="" />
</siteMapNode>

Any suggestions?

Jeff

Jul 28 '06 #2

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

Similar topics

52
by: DJ WIce | last post by:
Hi all, I did make a script/css thing to replace the contextmenu on the website with a new one: http://www.djwice.com/contextmenu.html It works nice in MSIE, but on Netscape (and probable...
46
by: DJ WIce | last post by:
Hi all, I did make a script/css thing to replace the contextmenu on the website with a new one: http://www.djwice.com/contextmenu.html It works nice in MSIE, but on Netscape (and probable...
1
by: Mark Rae | last post by:
Hi, Sorry for the repost - my ISP is having huge usenet problems at the moment... Following on with the problems of asp:Menu controls and Safari, I found the following article:...
14
namcintosh
by: namcintosh | last post by:
Hello, everyone. Well, let me cut to the chase and explain my problem. I am trying to devise a menu plan that uses the if/else if and the while loop. The program calculates the user's weight...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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,...

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.