Utils_Asp Class |
Namespace: MicaSystems.Utils
public static class Utils_Asp
The Utils_Asp type exposes the following members.
Name | Description | |
---|---|---|
AddMenuItem |
Simplified method to add a new MenuItem to a Menu.Items collection.
| |
DecodeQuotes |
Replaces ' (or ') and " by ' and " characters.
WARNING
THIS IS NOT A PROPER HTML DECODING
THIS METHOD SHOULD NOT NEVER BE USED HTML
| |
DoesKeyExist |
Checks if a value is available in the view state.
| |
EncodeQuotes |
Replaces single and double quotes respectively with ' and ".
WARNING
THIS IS NOT A PROPER HTML ENCODING
THIS METHOD SHOULD NOT NEVER BE USED FOR HTML
Prefer HttpUtility.HtmlAttributeEncode
| |
GetCurrentSiteName |
Gets the current contextual site name.
| |
GetParameter(HttpRequest, String) |
Tries to get the value of a parameter on the request.
| |
GetParameter(HttpRequestBase, String) |
Tries to get the value of a parameter on the request.
| |
GetParameter(Page, String) |
Tries to get the value of a parameter on the page's request.
| |
GetRequestId |
Gets an unique guid representing this context/request.
This method is using the Items collection with the key "RequestId". If not found, the unique id will be created and added to the collection. | |
IsAjaxRequest |
Checks if the request has been produced by an ajax request.
| |
StripTags |
Removes all tags from a text.
WARNING This method must not be used in place of HTML encoding. Be sure to encode the result of
this method if you plan to output it in a HTML context.
|