CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!



Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 9/25/2007 4:31:14 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 2 Views: 22 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
3 Items, 1 Pages 1 |< << Go >> >|
awfarral
Asp.Net User
Navigation in master page - is it a good idea?9/25/2007 4:31:14 PM

0/0

I want to have a horizontal set of graphics to act as my navigation for my site, a it like what you see on play.com/blahdvd.com etc.

one of my requirements is that the button (graphic) that relates to the current page is a different graphic to the rest, it relates to different folder levels in the site, i can successfully evaluate Request.Path.IndexOf() to see which one is on but i am having difficulty setting the image of the control.  Also as the navigation links are in the master page, the relative links are different when in a page from a sub folder,

i have tried using href="~/xxx/xx.aspx" but the my url looks like www.mysite.com/~/xxx.xx.aspx which causes an error as the path to the page does not exist.

and href="/xxx/xx.aspx" also results in a file not found error, even though my folder structure is

<root>

      <xxx>

           xx.aspx

index.aspx

scott@elbandit.
Asp.Net User
Re: Navigation in master page - is it a good idea?9/25/2007 6:11:14 PM

0/0

the character ~ in href="~/xxx/xx.aspx" is not valid HTML, it is used on the server side for ASP.net. What you could do is user a server control like this:

<asp:HyperLink NavigateUrl="~/myfolder/myLink.aspx" runat="server" ID="myLink">My Link</asp:HyperLink>

Let me know how you get on. If you are caching your pages you may run into problems, if you are using outputcache have a quick read of this post:

OutputCache and hyperlink problem
http://forums.asp.net/t/1162172.aspx

 


--------------------------------------------------------
Don't forget to click "Mark as Answer" on the post(s) that helped you.

Scott ASP.net blog

EndangeredMassa
Asp.Net User
Re: Navigation in master page - is it a good idea?9/25/2007 6:11:36 PM

0/0

Try:

href="xxx/xx.aspx"

without the first slash. 

3 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Professional ASP.NET 2.0 Design: CSS, Themes, and Master Pages Authors: Jacob J. Sanford, Pages: 474, Published: 2007
Essential SharePoint 2007: A Practical Guide for Users, Administrators and Developers Authors: Jeff Webb, Pages: 428, Published: 2007
Professional Community Server Themes Authors: Wyatt Preul, Benjamin Tiedt, Pages: 337, Published: 2007
ASP.NET 2.0 Website Programming: Problem-design-solution Authors: Marco Bellinaso, Pages: 576, Published: 2006
Big Book of Apple Hacks: Tips & Tools for Unlocking the Power of Your Apple Devices Authors: Chris Seibold, Pages: 627, Published: 2008
Macromedia Dreamweaver MX Dynamic Applications: Advanced Training from the Source Authors: Jeffrey Bardzell, Pages: 440, Published: 2003
Special Edition Using Macromedia Dreamweaver UltraDev 4: Special Edition Authors: NIIT, NIIT, NIIT (Firm), Priya Muralimohan, Kalawati Shankar, Mridula Varghese, Pages: 590, Published: 2001
Mastering InDesign CS3 for Print Design and Production: for print design and production Authors: Pariah S. Burke, Pages: 492, Published: 2007
Show Me Microsoft Office PowerPoint 2003 Authors: Steve Johnson, Perspection, Inc. Staff, Pages: 368, Published: 2003
Adobe Acrobat 5 Master Class: Interactivity and Multimedia for PDF Authors: Pattie Belle Hastings, Bjørn Akselsen, Sandee Cohen, Pages: 382, Published: 2003

Web:
Navigation in master page - is it a good idea? - ASP.NET Forums Re: Navigation in master page - is it a good idea? ... Re: Navigation in master page - is it a good idea? ...
Data Tutorial #2: Building our Master Page and Site Navigation ... NET 2.0 Master Page and Site Navigation features (and can be done without having to ...... But this is a really good idea, so wanted you to think about it. ...
sharepoint.H@ck : Creating the .master page for the contextual ... Here I talk about how to modify a new master page to include the ... I thought it might be a good idea to display the contextual search box in left ...
Microsoft Enterprise Content Management (ECM) Team Blog : Using ... Therefore, when building a master page, it’s generally a good idea to ... say you want to show the navigation breadcrumb above the page content similar to ...
How to Create a SharePoint Server 2007 Custom Master Page and Page ... You can create a custom master page by using SharePoint Designer, .... It is always a good idea to use fields instead of Web Parts unless you have a ...
Single Post > Using your own Master Page and providing blog-like ... Blog-like calendar navigation. Step 1 : Creating a Master Page ... Take a look at the screenshot below to get a better idea. Links list ...
CodeProject: An Extensible Master-Page Framework for ASP.NET 1.1 ... I started working on your lovely Master Page, I put a .acsx with a navigation tree on the left and to each node I have another .ascx I successfully loaded ...
K. Scott Allen : The MasterPage Article I Thought I’d Never Finish Good Article. I've been fumbling with findcontrol and masterpage's for a while ...... Is this a good idea or is there any other way to implement? as i don't ...
ASP.NET Resources - How to Link Stylesheets from a Master Page ... Apr 11, 2006 ... How to Link Stylesheets from a Master Page (Part 2) ... Good idea. ...
DataAccess object in MasterPage. Is this a good idea? - ASP.NET Forums DataAccess object in MasterPage. Is this a good idea? Rate It (1). Last post 04- 03-2008 4:30 AM by Dave Sussman. 1 replies. Sort Posts: ...




Search This Site:










i can't find how to get reference to menu control from its menuitem! :(

how to change user control label that is in master page

left-align sub-menu items of asp.net menu control?

changing the body id rendered in html

theme effecting menu control autoformat

menu spacing contains a bug?

navigating from masterpage

masterpage & crosspagepostback woes...

theme for a user control

help on setting css font-size on ie

hide sitemappath nodes???

having all "child" pages to have the same title

dynamic height while using a masterpage

referencing controls on nested master pages through clientside

using meta tags with master/content pages in asp.net 2.0

loading (not binding) a treeview with web.sitemap

dropdownlist doesn't work in master page

how masterpage could distinguish between the child forms?

defaultbutton property with master page

how to assign ascx controls to contentplace holders in a masterpage

web navigation problem

treeview -nodes displayed do not reflect xml data

how to enable menu item using javascript

two sitemaps one for the site one for navigation

self.focus() causing a minor problem

treeview and css control adapters

content place holder not matching master

please tell me i'm missing something (masterpages and the project root directory)

some questionable remarks in the sitemappath document

navigation tabs

  Privacy | Contact Us
All Times Are GMT