Click or drag to resize

Utils_Asp Class

ASP utilities.
Inheritance Hierarchy
SystemObject
  MicaSystems.UtilsUtils_Asp

Namespace:  MicaSystems.Utils
Assembly:  MicaSystems.Utils (in MicaSystems.Utils.dll) Version: 1.0.0.0 (1.1.0.123)
Syntax
C#
public static class Utils_Asp

The Utils_Asp type exposes the following members.

Methods
  NameDescription
Public methodStatic memberAddMenuItem
Simplified method to add a new MenuItem to a Menu.Items collection.
Public methodStatic memberDecodeQuotes
Replaces ' (or ') and " by ' and " characters. WARNING THIS IS NOT A PROPER HTML DECODING THIS METHOD SHOULD NOT NEVER BE USED HTML
Public methodStatic memberDoesKeyExist
Checks if a value is available in the view state.
Public methodStatic memberEncodeQuotes
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
Public methodStatic memberGetCurrentSiteName
Gets the current contextual site name.
Public methodStatic memberGetParameter(HttpRequest, String)
Tries to get the value of a parameter on the request.
Public methodStatic memberGetParameter(HttpRequestBase, String)
Tries to get the value of a parameter on the request.
Public methodStatic memberGetParameter(Page, String)
Tries to get the value of a parameter on the page's request.
Public methodStatic memberGetRequestId
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.

Public methodStatic memberIsAjaxRequest
Checks if the request has been produced by an ajax request.
Public methodStatic memberStripTags
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.
Top
See Also