CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Format:
Recent snippets matching tags of path
C++
/*    Renegade Scripts.dll
    Spectate
    Copyright 2012 Goldy58
 
    This file is part of the Renegade scripts.dll
    The Renegade scripts.dll is free software; you can redistribute it and/or modify it under
    the terms of the GNU General Public License as published by the Free
    Software Foundation; either version 2, or (at your option) any later
    version. See the file COPYING for more details.
    In addition, an exemption is given to allow Run Time Dynamic Linking of this code with any closed source module that does not contain code covered by this licence.
32 Views
no comments
 
C#
//using System.Web; 
 
//to return "http://www.samplepage.com/Egli/index.aspx"
string url = HttpContext.Current.Request.Url.AbsoluteUri;
 
//to return "/Egli/index.aspx"
string path = HttpContext.Current.Request.Url.AbsolutePath;
 
//to return "www.samplepage.com"
string host = HttpContext.Current.Request.Url.Host;
by Egli   July 25, 2011 @ 9:18pm
169 Views
no comments
 
C#
string hostingPage = Convert.ToString(HtmlPage.Document.GetProperty("referrer"));
string xapUrl = Current.Host.Source.AbsoluteUri;
string applicationRoot = xapUrl.Substring(0, xapUrl.LastIndexOf("ClientBin"));
by Arjan   March 24, 2010 @ 1:17pm
280 Views
no comments
 
*-- CLASS IasWebServer
 
*--  Some test code, demonstrating how the class works
*--  Make sure that webserver.vcx can be found by this program
*--  Also make sure that wwipstuff.dll can be found by this program
 
CLEAR
o = CREATEOBJECT("IasWebServer")
 
*-- Ask for the physical path of the virtual root for the default website:
by Phil Connolly   December 16, 2009 @ 11:22am
381 Views
no comments
 
C#
public static string DumpEnvironmentPaths()
{
    var paths = Enum.GetValues(typeof(Environment.SpecialFolder))
        .Cast<Environment.SpecialFolder>()
        .Select(folder => folder + " = " + Environment.GetFolderPath(folder))
        .Aggregate((s1, s2) => s1 + Environment.NewLine + s2);
    return paths;
}
by KirillOsenkov   September 27, 2009 @ 11:04pm
627 Views
no comments
 
C#
public static string GetFullApplicationPath()
{
    var url = HttpContext.Current.Request.Url.GetLeftPart(UriPartial.Authority);            
    return url + HttpContext.Current.Request.ApplicationPath.TrimEnd('/');
}
by Rick Strahl   September 07, 2009 @ 3:56pm
280 Views
no comments
 
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate