473,806 Members | 2,321 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Ht mlAnchor)e.Item .FindControl("L inkToProfile");
link.HRef = "~/Member.aspx?uid =" + subscriber.User Name;

Maybe I could solve this problem by substituting the HREF of the link
(System.Web.UI. HtmlControls.Ht mlAnchor, 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 1236

"Jeff" <it************ @hotmail.com.NO SPAMwrote in message
news:uU******** ******@TK2MSFTN GP04.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.Ht mlAnchor)e.Item .FindControl("L inkToProfile");
link.HRef = "~/Member.aspx?uid =" + subscriber.User Name;

Maybe I could solve this problem by substituting the HREF of the link
(System.Web.UI. HtmlControls.Ht mlAnchor, 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
4756
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 other browsers) it stays on the same place (does not "open'' where the mouse is). And the links do not work when you click on them. If anyone has sugestions on how to improve it, please let me know.
46
7051
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 other browsers) it stays on the same place (does not "open'' where the mouse is). And the links do not work when you click on them. If anyone has sugestions on how to improve it, please let me know.
1
1259
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: http://weblogs.asp.net/dannychen/archive/2005/11/21/431121.aspx Very interesting - I'll be examining some of the suggested workarounds
14
3227
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 on a given planet. It first asks for the user's weight, asks them for a choice. If they choose choices 1 though 9, the user's weight will be calculated on whatever choice they picked (for example, if the user inputs 150 as their weight and choose...
0
9719
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10366
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9187
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7649
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6877
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5678
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4329
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3850
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3008
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.