Property | Type | Description | |
---|---|---|---|
fullyQualifiedUrl | string |
Method | Description | |
---|---|---|
AdminUrl ( string Page ) : string | ||
AggBugkUrl ( int EntryID ) : string | ||
ArticleCategoryUrl ( string categoryName, int categoryID ) : string | ||
ArticleUrl ( |
||
CommentApiUrl ( int entryId ) : string | ||
CommentRssUrl ( int entryId ) : string | ||
DateFromUrl ( string url ) : System.DateTime |
Returns a DateTime instance parsed from the url.
|
|
DayUrl ( System.DateTime dt ) : string | ||
EntryFullyQualifiedUrl ( System.DateTime entryDate, string entryID ) : string | ||
EntryFullyQualifiedUrl ( System.DateTime entryDate, string entryName, int entryId ) : string | ||
EntryFullyQualifiedUrl ( |
||
EntryUrl ( |
Returns a relative URL to the entry.
|
|
FeedbackFullyQualifiedUrl ( int parentId, string parentEntryName, System.DateTime parentCreateDate, |
Returns the fully URL to the specified feedback item.
|
|
FeedbackUrl ( int parentId, string parentEntryName, System.DateTime parentCreateDate, |
Returns the URL to the specified feedback item.
|
|
GalleryUrl ( string category, int GalleryID ) : string | ||
GetBlogSubfolderFromRequest ( string rawUrl, string applicationPath ) : string |
Parses out the subfolder of the blog from the requested URL. It simply searches for the first "folder" after the host and Request.ApplicationPath. For example, if a blog is hosted at the virtual directory http://localhost/Subtext.Web/ and request is made for http://localhost/Subtext.Web/, the subfolder name is "" (empty string). Howver, a request for http://localhost/Subtext.Web/MyBlog/ would return "MyBlog" as the subfolder. Likewise, if a blog is hosted at http://localhost/, a request for http://localhost/MyBlog/ would return "MyBlog" as the subfolder. |
|
GetEditLink ( |
Builds the HyperLink.NavigateUrl for an EditPost Link by determining the current Subfolder and adding it to the URL if necessary.
|
|
GetFeedbackEditLink ( |
||
GetHostFromExternalUrl ( string url ) : string |
Parses out the host from an external URL.
|
|
GetImageFullUrl ( string imageUrl ) : string |
Get the fully qualified url for an image for a given url to the image. The given url could be fully qualified, or some type of local url.
|
|
GetPostIDFromUrl ( string uri ) : int |
Parses out the post ID from URL.
|
|
GetRequestedFileName ( string uri ) : string |
Gets the name of the requested file.
|
|
GetUriReferrerSafe ( |
From Jason Block @ http://www.angrycoder.com/article.aspx?cid=5&y=2003&m=4&d=15 Basically, it's [Request.UrlReferrer] doing a lazy initialization of its internal _referrer field, which is a Uri-type class. That is, it's not created until it's needed. The point is that there are a couple of spots where the UriFormatException could leak through. One is in the call to GetKnownRequestHeader(). _wr is a field of type HttpWorkerRequest. 36 is the value of the HeaderReferer constant - since that's being blocked in this case, it may cause that exception to occur. However, HttpWorkerRequest is an abstract class, and it took a trip to the debugger to find out that _wr is set to a System.Web.Hosting.ISAPIWorkerRequestOutOfProc object. This descends from System.Web.Hosting.ISAPIWorkerRequest, and its implementation of GetKnownRequestHeader() didn't seem to be the source of the problem.
|
|
ImageUrl ( string category, int ImageID ) : string | ||
IsInDirectory ( String rootFolderName ) : bool |
Determines whether the current request is in the specified directory.
|
|
IsInSpecialDirectory ( string folderName ) : bool |
Determines whether the current request is a request within a special directory.
|
|
MonthUrl ( System.DateTime dt ) : string | ||
PostCategoryUrl ( string categoryName, int categoryID ) : string | ||
ResolveLinks ( string body ) : string | ||
ShortenUrl ( string url, int max ) : string | ||
StripHostFromUrl ( string url ) : string |
Return the url with the http://host stripped off the front. The given url may or maynot have the http://host on it.
|
|
StripSurroundingSlashes ( string target ) : string |
Strips the surrounding slashes from the specified string.
|
|
TrackBackUrl ( int entryId ) : string | ||
UrlFormats ( |
||
YearUrl ( System.DateTime dt ) : string |
Method | Description | |
---|---|---|
GetFullyQualifiedUrl ( string formatString ) : string |
Returns a fully qualified Url using the specified format string.
|
|
GetUrl ( string formatString ) : string |
Returns a fully qualified Url using the specified format string.
|
Method | Description | |
---|---|---|
EntryUrl ( int entryId, string entryName, System.DateTime entryDate ) : string |
public ArticleCategoryUrl ( string categoryName, int categoryID ) : string | ||
categoryName | string | |
categoryID | int | |
return | string |
public ArticleUrl ( |
||
entry | ||
return | string |
public CommentApiUrl ( int entryId ) : string | ||
entryId | int | |
return | string |
public CommentRssUrl ( int entryId ) : string | ||
entryId | int | |
return | string |
public static DateFromUrl ( string url ) : System.DateTime | ||
url | string | URL. |
return | System.DateTime |
public DayUrl ( System.DateTime dt ) : string | ||
dt | System.DateTime | |
return | string |
public EntryFullyQualifiedUrl ( System.DateTime entryDate, string entryID ) : string | ||
entryDate | System.DateTime | |
entryID | string | |
return | string |
public EntryFullyQualifiedUrl ( System.DateTime entryDate, string entryName, int entryId ) : string | ||
entryDate | System.DateTime | |
entryName | string | |
entryId | int | |
return | string |
public EntryFullyQualifiedUrl ( |
||
entry | ||
return | string |
public EntryUrl ( |
||
entry | The entry. | |
return | string |
public FeedbackFullyQualifiedUrl ( int parentId, string parentEntryName, System.DateTime parentCreateDate, |
||
parentId | int | The id of the parent entry. |
parentEntryName | string | If exists. |
parentCreateDate | System.DateTime | |
feedback | The feedback. | |
return |
public FeedbackUrl ( int parentId, string parentEntryName, System.DateTime parentCreateDate, |
||
parentId | int | The id of the parent entry. |
parentEntryName | string | If exists. |
parentCreateDate | System.DateTime | |
feedback | The feedback. | |
return | string |
public GalleryUrl ( string category, int GalleryID ) : string | ||
category | string | |
GalleryID | int | |
return | string |
public static GetBlogSubfolderFromRequest ( string rawUrl, string applicationPath ) : string | ||
rawUrl | string | The raw url. |
applicationPath | string | The virtual application name as found in the Request.ApplicationName property. |
return | string |
public static GetEditLink ( |
||
entry | The entry to be edited | |
return | string |
public static GetFeedbackEditLink ( |
||
feedback | ||
return | string |
protected GetFullyQualifiedUrl ( string formatString ) : string | ||
formatString | string | The pattern. |
return | string |
public static GetHostFromExternalUrl ( string url ) : string | ||
url | string | The URL. |
return | string |
public static GetImageFullUrl ( string imageUrl ) : string | ||
imageUrl | string | url to an image |
return | string |
public static GetPostIDFromUrl ( string uri ) : int | ||
uri | string | The URI. |
return | int |
public static GetRequestedFileName ( string uri ) : string | ||
uri | string | The URI. |
return | string |
public static GetUriReferrerSafe ( |
||
request | ||
return |
protected GetUrl ( string formatString ) : string | ||
formatString | string | The pattern. |
return | string |
public ImageUrl ( string category, int ImageID ) : string | ||
category | string | |
ImageID | int | |
return | string |
public static IsInDirectory ( String rootFolderName ) : bool | ||
rootFolderName | String | Name of the root folder. |
return | bool |
public static IsInSpecialDirectory ( string folderName ) : bool | ||
folderName | string | Name of the folder. |
return | bool |
public MonthUrl ( System.DateTime dt ) : string | ||
dt | System.DateTime | |
return | string |
public PostCategoryUrl ( string categoryName, int categoryID ) : string | ||
categoryName | string | |
categoryID | int | |
return | string |
public static ResolveLinks ( string body ) : string | ||
body | string | |
return | string |
public static ShortenUrl ( string url, int max ) : string | ||
url | string | |
max | int | |
return | string |
public static StripHostFromUrl ( string url ) : string | ||
url | string | |
return | string |
public static StripSurroundingSlashes ( string target ) : string | ||
target | string | The target. |
return | string |
public UrlFormats ( |
||
fullyQualifiedUrl | ||
return | System |
public YearUrl ( System.DateTime dt ) : string | ||
dt | System.DateTime | |
return | string |