Method | Description | |
---|---|---|
BuildQueryString ( IDictionary parameters ) : string |
Builds a query string encoded. Supports multi-value query strings, using any IEnumerable as a value. |
|
HtmlEncode ( string content ) : string |
HTML encodes a string and returns the encoded string.
|
|
JavaScriptEscape ( string content ) : string |
Escapes JavaScript with Url encoding and returns the encoded string. Converts quotes, single quotes and CR/LFs to their representation as an escape character. |
|
JavascriptOptions ( IDictionary jsOptions ) : string |
Builds a JS associative array based on the specified dictionary instance. For example:
|
|
LineBreaksToHtml ( String content ) : String |
Escapes a content replacing line breaks with html break lines.
|
|
Quote ( object content ) : string |
Quotes the specified string with double quotes
|
|
Quote ( object items ) : string[] |
Quotes the specified string with singdoublele quotes
|
|
SQuote ( object content ) : string |
Quotes the specified string with double quotes
|
|
ScriptBlock ( string scriptContents ) : string |
Generates script block.
|
|
SetController ( Controller controller ) : void |
Sets the controller.
|
|
UrlEncode ( string content ) : string |
URL encodes a string and returns the encoded string.
|
|
UrlPathEncode ( string content ) : string |
URL encodes the path portion of a URL string and returns the encoded string.
|
Method | Description | |
---|---|---|
ConcatQueryString ( string leftParams, string rightParams ) : string |
Concat two string in a query string format (
|
|
GetAttributes ( IDictionary attributes ) : string |
Generates HTML element attributes string from attributes. string.Empty is returned if attributes is If for some DictionaryEntry.Key DictionaryEntry.Value is |
|
MergeOptions ( IDictionary userOptions, IDictionary defaultOptions ) : void |
Merges userOptions with defaultOptions placing results in userOptions. All IDictionary.Values and IDictionary.Keys in defaultOptions are copied to userOptions. Entries with the same DictionaryEntry.Key in defaultOptions and userOptions are skipped. |
|
RenderScriptBlockToSource ( string url ) : string |
Renders the a script block with a For example, suppose you invoke it like: That will render
|
|
RenderScriptBlockToSource ( string url, string queryString ) : string |
Renders the a script block with a For example, suppose you invoke it like: That will render
|
public BuildQueryString ( IDictionary parameters ) : string | ||
parameters | IDictionary | The parameters |
return | string |
protected ConcatQueryString ( string leftParams, string rightParams ) : string | ||
leftParams | string | key values |
rightParams | string | key values |
return | string |
protected GetAttributes ( IDictionary attributes ) : string | ||
attributes | IDictionary | The attributes for the element. |
return | string |
public HtmlEncode ( string content ) : string | ||
content | string | The text string to HTML encode. |
return | string |
public JavaScriptEscape ( string content ) : string | ||
content | string | The text to URL encode and escape JavaScript within. |
return | string |
public static JavascriptOptions ( IDictionary jsOptions ) : string | ||
jsOptions | IDictionary | The js options. |
return | string |
public LineBreaksToHtml ( String content ) : String | ||
content | String | The text to escape. |
return | String |
protected MergeOptions ( IDictionary userOptions, IDictionary defaultOptions ) : void | ||
userOptions | IDictionary | The user options. |
defaultOptions | IDictionary | The default options. |
return | void |
public static Quote ( object content ) : string | ||
content | object | The content. |
return | string |
public static Quote ( object items ) : string[] | ||
items | object | Items to quote |
return | string[] |
protected RenderScriptBlockToSource ( string url ) : string | ||
url | string | The url for the scripts (should start with a '/') |
return | string |
protected RenderScriptBlockToSource ( string url, string queryString ) : string | ||
url | string | The url for the scripts (should start with a '/') |
queryString | string | The query string. |
return | string |
public static SQuote ( object content ) : string | ||
content | object | The content. |
return | string |
public static ScriptBlock ( string scriptContents ) : string | ||
scriptContents | string | The script contents. |
return | string |
public SetController ( Controller controller ) : void | ||
controller | Controller | Current view's |
return | void |
public UrlEncode ( string content ) : string | ||
content | string | The text to URL encode. |
return | string |
public UrlPathEncode ( string content ) : string | ||
content | string | The text to URL encode. |
return | string |