473,796 Members | 2,867 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Links in master page

Since the master page is used in pages located in many folders how can I add
relative links to the master page?

Thank you,
Samuel
Oct 26 '06 #1
3 1203
"Samuel Shulman" <sa************ @ntlworld.comwr ote in message
news:um******** ********@TK2MSF TNGP03.phx.gbl. ..
Since the master page is used in pages located in many folders how can I
add relative links to the master page?
Are you talking about internal links to other pages in your web site / app,
or external links to public websites...?
Oct 26 '06 #2
"Samuel Shulman" wrote:
Since the master page is used in pages located in many folders how can I add
relative links to the master page?
You should be able to use:

<a href="~/path/to/file.aspx" runat="server"> Link title</a>
Oct 26 '06 #3
Thank you,
Samuel

"Leon Mayne" <Le*******@disc ussions.microso ft.comwrote in message
news:C3******** *************** ***********@mic rosoft.com...
"Samuel Shulman" wrote:
>Since the master page is used in pages located in many folders how can I
add
relative links to the master page?

You should be able to use:

<a href="~/path/to/file.aspx" runat="server"> Link title</a>

Oct 26 '06 #4

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

Similar topics

4
1508
by: Dual Links | last post by:
Hey! I have a problem and i am looking to implenement a simple solution. On our site we have an ecom system, but we also have a backup system incase the first system fails for whatever reason, not likey to happen, but just in case. So for every buy link on our site we have to put the secondary system.
5
2441
by: Michael Herman \(Parallelspace\) | last post by:
1. What are some compelling solutions for using Master/Content pages with Web Pages? 2. If a content area has a web part zone with web parts, what is the user experience like when "editting" the web part page? Does it take place at the page level? ...or the content area level? 3. Where is the Web Part Manager instantiated? ...in the Master Page? ....Content Page? ...elsewhere?
2
1880
by: Steve Franks | last post by:
I am familiar with the fact that you have to use runat=server and links staring with "~/" to ensure proper mapping of paths to relative URLs when using master pages. However this does not seem to work in all cases. For instance, assume I have a "/mysite/images" subdirectory with mybackground.gif and mygif.gif in there. Further assume I have a master page called mastertest.aspx located in /mysite/myfolder".
3
1421
by: Brett Baisley | last post by:
Hello, I am having trouble figuring out URL's from my master page. Here is my setup. I have a default.aspx and default.master file in the root folder. I have an "images" folder with logos and css files in there. I also have a "html" folder with more pages in there. The default.aspx file loads find, but when I open any of the other files under "html" folder, the linking is off therefore the logo's and css can't
2
1758
by: Jon Spivey | last post by:
Hi, Using VS 2005/VB.net. I need to add a meta description tag and change a stylesheet link from a page based on a master page. Found this article http://msdn.microsoft.com/asp.net/reference/design/default.aspx?pull=/library/en-us/dnvs05/html/masterpages.asp#masterpages_topic8 Which seems to suggest it's possible (Listing 11 half way down the page) but the method for adding a meta tag Master.Page.Header.Metadata.Add("Description",...
2
1187
by: Mark A. Sam | last post by:
Hello, I can't seem to place images on a master page. I placed the images in a folder in Solutons Exploer and drag them onto the page, but get broken links. Thanks for any help and God Bless, Mark A. Sam
0
1021
by: Learner | last post by:
Hello, we are using Master Pages in asp.net 2.0. Our Master page has three contentplaceholders. On the left most ContentPlaceHolder we have all the links for the navigation of the site. One of the links on it is "Admin" link. Now, if some one with "Admin" Role logs in and clicks on it then the "Admin" link should populate all the other links underneath the "Admin" link. I am looking for some thing like toggel link. Can some one please...
6
1638
by: Giganews | last post by:
I've got a master page, with stylesheets on it defined as such: <link href="/css/reset-min.css" rel="stylesheet" media="all" /> problem is, I have pages in different folders that link to that master page, so any page that's not in the same folder as the master page, don't display the css. I've tried the following: <link href="~/css/reset-min.css" rel="stylesheet" media="all" /> which didn't work.
6
9162
by: =?Utf-8?B?SmF5IFBvbmR5?= | last post by:
I am trying to access a Public property on a Master Page from a Base Page. On the content pages I have the MasterType Directive set up as follows: <%@ MasterType virtualpath="~/Master.master" %> On the Master Page I have a public property exposed: Public Property ErrorMessage() As String Get Return txtError.InnerText End Get
0
9535
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10244
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...
1
10201
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9061
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
7558
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
6802
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();...
1
4130
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
3744
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2931
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.