Friday, January 22, 2010

Root URL property for Asp.net Web Applications

public string RootUrl
{
    get
    {
        Uri requestUri = Context.Request.Url;
        HttpRequest request = Context.Request;
        string rootUrl = string.Format("{0}{1}{2}{3}{4}",
            requestUri.Scheme,
            Uri.SchemeDelimiter,
            requestUri.Host,
            requestUri.IsDefaultPort ? string.Empty : string.Format(":{0}", requestUri.Port),
            request.ApplicationPath);
        return rootUrl.EndsWith("/") ? rootUrl : string.Format("{0}/", rootUrl);
    }
}

iPhone Launch Screen Sizes

iPhone Portrait iOS 8 Retina HT 5.5 = 1242 X 2208 Retna HD 4.7 = 750 X 1134 iPhone Landscape iOS 8 Retina HD 5.5  2208 X 1242 iPho...