The UrlUtility type exposes the following members.
Methods
Name | Description | |
---|---|---|
AddToUrlWithDuplicates |
Adds the parameter with value to the url query, allowing for duplicate parameters.
|
|
FileExists |
Files the exists.
|
|
GetHrefs |
Returns all links from the page in the format <a href="..."></a>
|
|
GetMaskedUrls |
Returns all "masked" URLs from the text in the full Url format http://... . Masking is used in various editors and textboxes so the user could limit which URLs are caught.
|
|
GetUrl<(Of <<'(T>)>>) |
Used for postbacks - returns a current page URL with a query string name and value appended to it.
|
|
GetUrlRewriterDefaultPage |
Gets the default page for a particular URL rewriting rule name from Web.config.
|
|
GetUrlRewriterFormat |
Gets the URL format for a particular URL rewriting rule name from Web.config.
|
|
GetUrls |
Returns all URLs from the text in the full Url format. http://...
|
|
IsRewriteable |
Used to check if the path is rewriteable - only aspx pages (or rewritten pages without extensions) should be rewritten.
|
|
ReloadCurrentPage()()()() |
Reloads the current page by redirecting the response to the current URL.
|
|
ReloadCurrentPage(Boolean) |
Reloads the current page by redirecting the response to the current URL.
|
|
ReloadCurrentPage(String) |
Reloads the current page by redirecting the response to the current URL.
|
|
ReloadCurrentPage(Boolean, String) |
Reloads the current page by redirecting the response to the current URL.
|
|
ReplaceTildas |
Replaces tildas in the string with a AppDomainVirtualPath (localized). If a "~/" sequence is "masked" by placing "\" before it (if the author want to keep the original string), only the masking character is removed and the tilda is not removed.
|
|
ReplaceVirtualPaths |
Replaces virtual paths back with tildas, for example when a document is to be saved in the database.
|
|
ResolveThemeUrl |
Resolves URL for the "fileName" regarding the currently active theme. For example, ResolveThemeUrl("myfile.jpg") for the Default theme should return /SiteRoot/App_Themes/Default.myfile.jpg.
|
|
RewritePagePath(String) |
Used for so-called "relative URL rewriting" where URL rewriting rules have a variable "{PageName}" which is replaced by the caller's page name using this method.
The "~/" section at the beginning is replaced with the absolute path of the calling page, so each rule can function regardless of the page depth and location in the portal hierarchy.
Current Request.Url is used as a calling URL.
|
|
RewritePagePath(String, Object) |
Used for so-called "relative URL rewriting" where URL rewriting rules have a variable "{PageName}" which is replaced by the caller's page name using this method.
The "~/" section at the beginning is replaced with the absolute path of the calling page, so each rule can function regardless of the page depth and location in the portal hierarchy.
FormatSource object is used to perform subsequent formatting of the rewritten URL.
|
|
RewritePagePath(String, String) |
Used for so-called "relative URL rewriting" where URL rewriting rules have a variable "{PageName}" which is replaced by the caller's page name using this method.
The "~/" section at the beginning is replaced with the absolute path of the calling page, so each rule can function regardless of the page depth and location in the portal hierarchy.
Caller URL is passed as a parameter.
|
|
RewritePagePath(String, String, Object) |
Used for so-called "relative URL rewriting" where URL rewriting rules have a variable "{PageName}" which is replaced by the caller's page name using this method.
The "~/" section at the beginning is replaced with the absolute path of the calling page, so each rule can function regardless of the page depth and location in the portal hierarchy.
|
|
RewritePagePathAndRetainQueryParameters(String) |
Used for so-called "relative URL rewriting" where URL rewriting rules have a variable "{PageName}" which is replaced by the caller's page name using this method.
The "~/" section at the beginning is replaced with the absolute path of the calling page, so each rule can function regardless of the page depth and location in the portal hierarchy.
Current Request.Url is used as a calling URL.
Query parameters from the current page are transferred to the rewritten path, but are copied in "raw" fashion in the query string and are not rewritten.
Often used in "subcontainer" controls where URL should point to another rewritten URL, but all present parameters should be retained for parent container.
|
|
RewritePagePathAndRetainQueryParameters(String, String) |
Used for so-called "relative URL rewriting" where URL rewriting rules have a variable "{PageName}" which is replaced by the caller's page name using this method.
The "~/" section at the beginning is replaced with the absolute path of the calling page, so each rule can function regardless of the page depth and location in the portal hierarchy.
Current Request.Url is used as a calling URL.
Query parameters from the current page are transferred to the rewritten path, but are copied in "raw" fashion in the query string and are not rewritten.
Often used in "subcontainer" controls where URL should point to another rewritten URL, but all present parameters should be retained for parent container.
|
|
RewritePagePathAndRetainQueryParameters(String, String, Object) |
Used for so-called "relative URL rewriting" where URL rewriting rules have a variable "{PageName}" which is replaced by the caller's page name using this method.
The "~/" section at the beginning is replaced with the absolute path of the calling page, so each rule can function regardless of the page depth and location in the portal hierarchy.
Current Request.Url is used as a calling URL.
Query parameters from the current page are transferred to the rewritten path, but are copied in "raw" fashion in the query string and are not rewritten.
Often used in "subcontainer" controls where URL should point to another rewritten URL, but all present parameters should be retained for parent container.
|