Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

relative-path

Slash (/) vs tilde slash (~/) in style sheet path

September 3, 2022 by Magenaut

ASP.NET offers two ways to specify paths for style sheets:

Categories ASP.NET, Q&A Tags absolute-path, asp.net, path, relative-path, stylesheet Leave a comment

How to use Server.MapPath to get location outside website folder in ASP.NET

August 31, 2022 by Magenaut

When my ASP.NET site uses documents (e.g. XML), I normally load the document as follows:

Categories ASP.NET, Q&A Tags asp.net, relative-path Leave a comment

IIS virtual directory and ASP.NET directory paths

August 31, 2022 by Magenaut

The problem I’m running into the typical virtual-directory dilemma in that you have some paths on your ASP.Net application and you deploy the app in a IIS virtual directory. Then all paths relatives to the “web root” (f.i., “/images”) doesn’t work because the app is in a virtual directory path. The solutions A. Make the … Read more

Categories ASP.NET, Q&A Tags asp.net, iis, relative-path Leave a comment

~/ equivalent in javascript

August 30, 2022 by Magenaut

Any smart way of doing a “root” based path referencing in JavaScript, just the way we have ~/ in ASP.NET?

Categories ASP.NET, Q&A Tags asp.net, javascript, relative-path, web-applications Leave a comment

Relative Links with Extension-less URLs

August 28, 2022 by Magenaut

I have an ASP.NET 4.0 application that implements URL routing. This gives me page URLs with no extension (e.g. /Articles/{title})

Categories ASP.NET, Q&A Tags asp.net, iis-7, relative-path, url-routing Leave a comment

Using Server.MapPath in external C# Classes in ASP.NET

August 27, 2022 by Magenaut

I’m trying to get the absolute path of certain files in a C# class. Server.MapPath works great of course for ASPX and their code-behind pages, but that doesn’t exist in another class file. I tried HostingEnvironment.MapPath(), but that complains that the relative virtual path isn’t allowed. Any thoughts?

Categories ASP.NET, Q&A Tags asp.net, c#, file, path, relative-path Leave a comment

Preferred way to include relative reference to JavaScript in VS 2008 nested Masterpage

August 26, 2022 by Magenaut

Our base Masterpage has something like the following

Categories ASP.NET, Q&A Tags asp.net, javascript, master-pages, nested, relative-path Leave a comment

getting base url of web site’s root (absolute/relative url)

August 26, 2022 by Magenaut

I want to completely understand how to use relative and absolute url address in static and dynamic files.

Categories ASP.NET, Q&A Tags absolute-path, asp.net, javascript, relative-path, virtual-directory Leave a comment

Relative to absolute paths in HTML

August 25, 2022 by Magenaut

I need to create a newsletters by URL. To do that, I:

Categories ASP.NET, Q&A Tags absolute-path, asp.net, html, relative-path Leave a comment

Relative imports for the billionth time

August 22, 2022 by Magenaut

I’ve been here:

Categories Python, Q&A Tags import, python, python-packaging, relative-import, relative-path Leave a comment
Older posts
Page1 Page2 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress