Méthode | Description | |
---|---|---|
BuildOrderedList ( ICollection elements ) : String |
Builds an ordered ol list from supplied ICollection. Calling Items in elements are converted to string through Object.ToString. |
|
BuildOrderedList ( ICollection elements, String styleClass, String itemClass ) : String |
Builds an ordered ol list from supplied ICollection with ol and li tags CSS class set to supplied attributes. Calling Items in elements are converted to string through Object.ToString. |
|
BuildUnorderedList ( ICollection elements ) : String |
Builds an unordered ul list from supplied ICollection. Calling Items in elements are converted to string through Object.ToString. |
|
BuildUnorderedList ( ICollection elements, String styleClass, String itemClass ) : String |
Builds an unordered ul list from supplied ICollection with ul and li tags CSS class set to supplied attributes. Calling Items in elements are converted to string through Object.ToString. |
|
CreateOption ( String text, object value ) : String |
TODO: Document this!
|
|
CreateOption ( String text, object value, IDictionary htmlAttributes ) : String |
TODO: Document this! Valid html attributes include: selected and disabled |
|
CreateOptions ( ICollection elems, String textProperty, String valueProperty ) : String |
Creates options elements from an ICollection. Calling Calling There are two possible usages of the method depending on the types of objects which can be present in elems: |
|
CreateOptions ( ICollection elems, String textProperty, String valueProperty, object selectedValue ) : String |
Creates options elements from an ICollection. Calling Calling There are two possible usages of the method depending on the types of objects which can be present in elems: |
|
CreateOptionsFromArray ( |
Creates options elements from an Array. Calling Calling There are two possible usages of the method depending on the types of objects which can be present in elems: CreateOptionsFromArray relies on CreateOptions(ICollection,String,String) to generate all option tags. |
|
CreateOptionsFromArray ( |
Creates options elements from an Array. Calling Calling There are two possible usages of the method depending on the types of objects which can be present in elems: CreateOptionsFromArray relies on CreateOptions(ICollection,String,String,object) to generate all option tags. |
|
CreateOptionsFromPrimitiveArray ( |
Creates option elements from Array. Marks the option that matches the selected argument (if provided). Calling Elements in the array are converted to String using StringBuilder.AppendFormat(String,object). |
|
DateTime ( String name, System.DateTime value ) : String |
Creates three select tags to input day, month and year. Calling name is used to generate name and id for each select tag. Supplied String is concatenated with "day", "month", or "year" to create String for the tag attributes. |
|
DateTime ( String name, System.DateTime value, IDictionary attributes ) : String |
Creates three select tags to input day, month and year. Calling name is used to generate name and id for each select tag. Supplied String is concatenated with "day", "month", or "year" to create String for the tag attributes. attributes is used to generate additional attributes for each of the select tags. IDictionary.Keys are used to name attributes. IDictionary.Values are used to assign those attributes values. |
|
EndFieldSet ( ) : String |
Creates a closing fieldset tag. This method should be invoked after FieldSet to close the fieldset. Calling |
|
EndForm ( ) : String |
Creates a closing form tag. Calling |
|
EndOptionGroup ( ) : String |
Creates a closing optgroup element.
|
|
EndSelect ( ) : String |
Creates a closing select tag. Calling |
|
FieldSet ( String legend ) : String |
Creates a fieldset tag with a legend. Calling |
|
Form ( String action ) : String |
Creates a form tag with "post" method and specified action. Calling |
|
Form ( String action, IDictionary attributes ) : String |
Creates a form tag with the specified action attribute.
|
|
Form ( String action, String id, String method ) : String |
Creates a form tag with the specified method, action and id attributes. Calling |
|
Form ( String action, String id, String method, String onSubmit ) : String |
Creates a form tag with the specified method and action attributes, id and onSubmit event handler. Calling |
|
FormTo ( String action ) : String |
Creates a form tag targeting a URL in the style of the LinkTo(String, String) methods.
|
|
FormTo ( String controller, String action ) : String |
Creates a form tag targeting a URL in the style of the LinkTo(String, String) methods.
|
|
FormTo ( String controller, String action, object id ) : String |
Creates a form tag targeting a URL in the style of the LinkTo(String, String) methods.
|
|
FormToAttributed ( String controller, String action, IDictionary attributes ) : String |
Creates a form tag targeting a URL in the style of the LinkToAttributed(String, String, String, IDictionary) methods.
|
|
FormToAttributed ( String controller, String action, object id, IDictionary attributes ) : String |
Creates a form tag targeting a URL in the style of the LinkToAttributed(String, String, String, IDictionary) methods.
|
|
FormToAttributed ( String controller, String action, object id, string method, IDictionary attributes ) : String |
Creates a form tag targeting a URL in the style of the LinkToAttributed(String, String, String, IDictionary) methods.
|
|
InputButton ( String value ) : String |
Creates an input element of the button type. Calling |
|
InputButton ( String name, String value ) : String |
Creates an input element of the button type.
|
|
InputButton ( String name, String value, IDictionary attributes ) : String |
Creates an input element of the button type.
|
|
InputCheckbox ( String name, Object value ) : String |
Creates an input element of the checkbox type. Calling |
|
InputCheckbox ( String name, Object value, IDictionary attributes ) : String |
Creates an input element of the checkbox type.
|
|
InputCheckbox ( String name, Object value, bool isChecked ) : String |
Creates an input element of the checkbox type.
|
|
InputFile ( String name ) : String |
Creates an input element of the file type. Calling |
|
InputFile ( String name, IDictionary attributes ) : String |
Creates an input element of the file type.
|
|
InputHidden ( String name, String value ) : String |
Creates an input hidden element Calling |
|
InputHidden ( String name, object value ) : String |
Creates a hidden type input element. Calling String for value attribute is retrieved from value via object.ToString. If value is |
|
InputPassword ( String name ) : String |
Creates an input element of password type
|
|
InputPassword ( String name, String value ) : String |
Creates an input element of password type
|
|
InputPassword ( String name, String value, IDictionary attributes ) : String |
Creates an input element of password type
|
|
InputRadio ( String name, Object value ) : String |
Creates an input element of the radio type. Calling |
|
InputRadio ( String name, Object value, IDictionary attributes ) : String |
Creates an input element of the radio type.
|
|
InputText ( String name, String value ) : String |
Creates an input element of the text type. Calling |
|
InputText ( String name, String value, IDictionary attributes ) : String |
Creates a hidden type input element.
|
|
InputText ( String name, String value, String id ) : String |
Creates an input element of the text type with custom name and id. Calling |
|
InputText ( String name, String value, int size, int maxlength ) : String |
Creates an input element of the text type of specified size and maxlength. Calling |
|
InputText ( String name, String value, int size, int maxlength, IDictionary attributes ) : String |
Creates an input element of the text type with specified size, maxlength and attributes. Calling attributes is used to generate additional attributes for the label tag. IDictionary.Keys are used to name attributes. IDictionary.Values are used to assign those attributes values. |
|
LabelFor ( String forId, String label ) : String |
Creates a label for the element indicated with forId. Calling |
|
LabelFor ( String forId, String label, IDictionary attributes ) : String |
Creates a label for the element indicated with forId. Calling |
|
Link ( String target, String linkText ) : String |
Creates an anchor (link) to the target Calling |
|
Link ( String target, String linkText, IDictionary attributes ) : String |
Creates an anchor (link) to the target Calling |
|
LinkTo ( String name, IDictionary options ) : String |
Creates an anchor (link) to the action on the current controller. Calling |
|
LinkTo ( String name, String action ) : String |
Creates an anchor (link) to the action on the current controller. Calling |
|
LinkTo ( String name, String controller, String action ) : String |
Creates an anchor (link) to the action on the specified controller. Calling |
|
LinkTo ( String name, String controller, String action, object id ) : String |
Creates an anchor (link) to the action on the specified controller passing provided id. Calling String.Format(String, object) is used to convert id to the actual String. |
|
LinkToAttributed ( String name, String controller, String action, IDictionary attributes ) : String |
Creates an anchor (link) to the action on the specified controller Calling |
|
LinkToAttributed ( String name, String controller, String action, object id, IDictionary attributes ) : String |
Creates an anchor (link) to the action on the specified controller Calling |
|
LinkToWithPost ( String name, String action ) : String |
Creates an anchor (link) to the action on the current controller that posts using a hidden form element.
|
|
LinkToWithPost ( String name, String action, String confirm ) : String |
Creates an anchor (link) to the action on the current controller that posts using a hidden form element.
|
|
LinkToWithPost ( String name, String controller, String action, String confirm ) : String |
Creates an anchor (link) to the action on the specified controller that posts using a hidden form element.
|
|
LinkToWithPost ( String name, String controller, String action, object id ) : String |
Creates an anchor (link) to the action on the specified controller that posts using a hidden form element.
|
|
LinkToWithPost ( String name, String controller, String action, object id, String confirm ) : String |
Creates an anchor (link) to the action on the specified controller that posts using a hidden form element.
|
|
LinkToWithPost ( String name, String action, object id ) : String |
Creates an anchor (link) to the action on the current controller that posts using a hidden form element.
|
|
LinkToWithPost ( String name, String action, object id, string confirm ) : String |
Creates an anchor (link) to the action on the current controller that posts using a hidden form element.
|
|
LinkToWithPostAttributed ( String name, String controller, String action, String confirm, IDictionary attributes ) : String |
Creates an anchor (link) to the action on the specified controller that posts using a hidden form element.
|
|
LinkToWithPostAttributed ( String name, String controller, String action, object id, String confirm, IDictionary attributes ) : String |
Creates an anchor (link) to the action on the specified controller that posts using a hidden form element.
|
|
MapToVirtual ( String target ) : String |
Maps target to website virtual path. Calling |
|
OptionGroup ( String label ) : String |
Creates an opening optgroup element.
|
|
Select ( String name ) : String |
Creates opening select tag. Calling |
|
Select ( String name, IDictionary attributes ) : String |
Creates opening select tag. Calling attributes is used to generate additional attributes for the label tag. IDictionary.Keys are used to name attributes. IDictionary.Values are used to assign those attributes values. |
|
SubmitButton ( String value ) : String |
Creates a submit button. Calling |
|
SubmitButton ( String value, IDictionary attributes ) : String |
Creates a submit button. Calling attributes is used to generate additional attributes for the label tag. IDictionary.Keys are used to name attributes. IDictionary.Values are used to assign those attributes values. |
|
TextArea ( String name, int cols, int rows, String value ) : String |
Creates a text area element. Calling |
Méthode | Description | |
---|---|---|
BuildList ( String tag, ICollection elements, String styleClass, String itemClass ) : String |
Builds a list with list tag specified by tag from supplied ICollection with list tag and li tags CSS class set to supplied attributes. This method is can be used to generate custom type HTML list. Currently HTML support only two types of lists ordered (ol tag) and unodered (ultag). In general this method should be used by other methods responsible for constructing some specific list. Calling Items in elements are converted to string through Object.ToString. |
|
BuildListItem ( String item, String itemClass ) : String |
Generates a list item li tag. This method should be used to assist list generation. Calling |
|
GetMethod ( object elem, String property ) : |
Gets the property get method. This method is used to get the MethodInfo to retrieve specified property from the specified type. |
|
IsSelected ( object value, object selectedValue, bool isMultiple ) : bool |
Determines whether the specified value is selected. Specified value is selected if it Object.Equals(object) to the selectedValue. Or if selectedValue is an array value is selected if Array.IndexOf(Array, object) can find it in selectedValue. |
public BuildOrderedList ( ICollection elements ) : String | ||
elements | ICollection | Collection with items to use for the list generation. |
Résultat | String |
public BuildOrderedList ( ICollection elements, String styleClass, String itemClass ) : String | ||
elements | ICollection | Collection with items to use for the list generation. |
styleClass | String | CSS class name of the list ol tag. |
itemClass | String | CSS class name of the list item li tag. |
Résultat | String |
public BuildUnorderedList ( ICollection elements ) : String | ||
elements | ICollection | Collection with items to use for the list generation. |
Résultat | String |
public BuildUnorderedList ( ICollection elements, String styleClass, String itemClass ) : String | ||
elements | ICollection | Collection with items to use for the list generation. |
styleClass | String | CSS class name of the list ul tag. |
itemClass | String | CSS class name of the list item li tag. |
Résultat | String |
public CreateOption ( String text, object value ) : String | ||
text | String | |
value | object | |
Résultat | String |
public CreateOption ( String text, object value, IDictionary htmlAttributes ) : String | ||
text | String | |
value | object | |
htmlAttributes | IDictionary | |
Résultat | String |
public CreateOptions ( ICollection elems, String textProperty, String valueProperty ) : String | ||
elems | ICollection | Collection of objects each of which describes an option tag. |
textProperty | String | Name of the |
valueProperty | String | Name of the |
Résultat | String |
public CreateOptions ( ICollection elems, String textProperty, String valueProperty, object selectedValue ) : String | ||
elems | ICollection | Collection of objects each of which describes an option tag. |
textProperty | String | Name of the |
valueProperty | String | Name of the |
selectedValue | object | |
Résultat | String |
public CreateOptionsFromArray ( |
||
elems | Collection of objects each of which describes an option tag. | |
textProperty | String | Name of the |
valueProperty | String | Name of the |
Résultat | String |
public CreateOptionsFromArray ( |
||
elems | Collection of objects each of which describes an option tag. | |
textProperty | String | Name of the |
valueProperty | String | Name of the |
selectedValue | object | |
Résultat | String |
public CreateOptionsFromPrimitiveArray ( |
||
elems | Array of values for each option tag. | |
selected | String | Name of the option tag to mark selected. |
Résultat | String |
public DateTime ( String name, System.DateTime value ) : String | ||
name | String | Name to use with name and id arguments of the select tag. |
value | System.DateTime | |
Résultat | String |
public DateTime ( String name, System.DateTime value, IDictionary attributes ) : String | ||
name | String | Name to use with name and id arguments of the select tag. |
value | System.DateTime | |
attributes | IDictionary | Additional attributes for select tags. |
Résultat | String |
public FieldSet ( String legend ) : String | ||
legend | String | Legend to use within the fieldset. |
Résultat | String |
public Form ( String action ) : String | ||
action | String | Target action for the form. |
Résultat | String |
public Form ( String action, IDictionary attributes ) : String | ||
action | String | Target action for the form. |
attributes | IDictionary | Html Attributes for the form tag |
Résultat | String |
public Form ( String action, String id, String method ) : String | ||
action | String | Target action for the form. |
id | String | Form HTML ID. |
method | String | Form method (get, post, etc). |
Résultat | String |
public Form ( String action, String id, String method, String onSubmit ) : String | ||
action | String | Target action for the form. |
id | String | Form HTML ID. |
method | String | Form method (get, post, etc). |
onSubmit | String | JavaScript inline code to be invoked upon form submission. |
Résultat | String |
public FormTo ( String action ) : String | ||
action | String | An action on the current controller. |
Résultat | String |
public FormTo ( String controller, String action ) : String | ||
controller | String | A controller name. |
action | String | An action on |
Résultat | String |
public FormTo ( String controller, String action, object id ) : String | ||
controller | String | A controller name. |
action | String | An action on |
id | object | Object to use for the action ID argument. |
Résultat | String |
public FormToAttributed ( String controller, String action, IDictionary attributes ) : String | ||
controller | String | A controller name. |
action | String | An action on |
attributes | IDictionary | Additional attributes for the form tag. |
Résultat | String |
public FormToAttributed ( String controller, String action, object id, IDictionary attributes ) : String | ||
controller | String | A controller name. |
action | String | An action on |
id | object | Object to use for the action ID argument. |
attributes | IDictionary | Additional attributes for the form tag. |
Résultat | String |
public FormToAttributed ( String controller, String action, object id, string method, IDictionary attributes ) : String | ||
controller | String | A controller name. |
action | String | An action on |
id | object | Object to use for the action ID argument. |
method | string | Form method (get, post, etc). |
attributes | IDictionary | Additional attributes for the form tag. |
Résultat | String |
public InputButton ( String value ) : String | ||
value | String | |
Résultat | String |
public InputButton ( String name, String value ) : String | ||
name | String | Value for name and id attributes. |
value | String | |
Résultat | String |
public InputButton ( String name, String value, IDictionary attributes ) : String | ||
name | String | Value for name and id attributes. |
value | String | |
attributes | IDictionary | Additional attributes for the input tag. |
Résultat | String |
public InputCheckbox ( String name, Object value ) : String | ||
name | String | Value for |
value | Object | |
Résultat | String |
public InputCheckbox ( String name, Object value, IDictionary attributes ) : String | ||
name | String | Value for name and id attributes. |
value | Object | |
attributes | IDictionary | Additional attributes for the input tag. |
Résultat | String |
public InputCheckbox ( String name, Object value, bool isChecked ) : String | ||
name | String | Value for name and id attributes. |
value | Object | |
isChecked | bool | If true, adds the |
Résultat | String |
public InputFile ( String name ) : String | ||
name | String | Value for name attribute. |
Résultat | String |
public InputFile ( String name, IDictionary attributes ) : String | ||
name | String | Value for name attribute. |
attributes | IDictionary | Additional attributes for the input tag. |
Résultat | String |
public InputHidden ( String name, String value ) : String | ||
name | String | Value for name and id attributes. |
value | String | |
Résultat | String |
public InputHidden ( String name, object value ) : String | ||
name | String | Value for name and id attributes. |
value | object | |
Résultat | String |
public InputPassword ( String name ) : String | ||
name | String | |
Résultat | String |
public InputPassword ( String name, String value ) : String | ||
name | String | |
value | String | |
Résultat | String |
public InputPassword ( String name, String value, IDictionary attributes ) : String | ||
name | String | |
value | String | |
attributes | IDictionary | |
Résultat | String |
public InputRadio ( String name, Object value ) : String | ||
name | String | Value for name attribute. |
value | Object | |
Résultat | String |
public InputRadio ( String name, Object value, IDictionary attributes ) : String | ||
name | String | Value for name attribute. |
value | Object | |
attributes | IDictionary | Additional attributes for the input tag. |
Résultat | String |
public InputText ( String name, String value ) : String | ||
name | String | Value for name and id attributes. |
value | String | |
Résultat | String |
public InputText ( String name, String value, IDictionary attributes ) : String | ||
name | String | |
value | String | |
attributes | IDictionary | |
Résultat | String |
public InputText ( String name, String value, String id ) : String | ||
name | String | name attribute value. |
value | String | |
id | String | id attribute value. |
Résultat | String |
public InputText ( String name, String value, int size, int maxlength ) : String | ||
name | String | Value for name and id attributes. |
value | String | |
size | int | size attribute value. |
maxlength | int | maxlength attribute value. |
Résultat | String |
public InputText ( String name, String value, int size, int maxlength, IDictionary attributes ) : String | ||
name | String | Value for name and id attributes. |
value | String | |
size | int | size attribute value. |
maxlength | int | maxlength attribute value. |
attributes | IDictionary | Additional attributes for the input tag. |
Résultat | String |
public LabelFor ( String forId, String label ) : String | ||
forId | String | ID of the element for which to create the lable. |
label | String | Label name. |
Résultat | String |
public LabelFor ( String forId, String label, IDictionary attributes ) : String | ||
forId | String | ID of the element for which to create the label. |
label | String | Label name. |
attributes | IDictionary | Additional attributes to add to the label. |
Résultat | String |
public Link ( String target, String linkText ) : String | ||
target | String | link's target. |
linkText | String | Text of the link. |
Résultat | String |
public Link ( String target, String linkText, IDictionary attributes ) : String | ||
target | String | link's target. |
linkText | String | Text of the link. |
attributes | IDictionary | Additional attributes for the a tag. |
Résultat | String |
public LinkTo ( String name, IDictionary options ) : String | ||
name | String | Name for the link. |
options | IDictionary | link options |
Résultat | String |
public LinkTo ( String name, String action ) : String | ||
name | String | Name for the link. |
action | String | Action to link to. |
Résultat | String |
public LinkTo ( String name, String controller, String action ) : String | ||
name | String | Name for the link. |
controller | String | Controller to link to. |
action | String | Action to link to. |
Résultat | String |
public LinkTo ( String name, String controller, String action, object id ) : String | ||
name | String | Name for the link. |
controller | String | Controller to link to. |
action | String | Action to link to. |
id | object | Object to use for the action ID argument. |
Résultat | String |
public LinkToAttributed ( String name, String controller, String action, IDictionary attributes ) : String | ||
name | String | Name for the link. |
controller | String | Controller to link to. |
action | String | Action to link to. |
attributes | IDictionary | Additional attributes for the a tag. |
Résultat | String |
public LinkToAttributed ( String name, String controller, String action, object id, IDictionary attributes ) : String | ||
name | String | Name for the link. |
controller | String | Controller to link to. |
action | String | Action to link to. |
id | object | The ID to be passed as a parameter for the action |
attributes | IDictionary | Additional attributes for the a tag. |
Résultat | String |
public LinkToWithPost ( String name, String action ) : String | ||
name | String | Name for the link. |
action | String | Action to link to on the current controller. |
Résultat | String |
public LinkToWithPost ( String name, String action, String confirm ) : String | ||
name | String | Name for the link. |
action | String | Action to link to on the current controller. |
confirm | String | Guards the form submission with a javascript confirm popup. |
Résultat | String |
public LinkToWithPost ( String name, String controller, String action, String confirm ) : String | ||
name | String | Name for the link. |
controller | String | Controller to link to. |
action | String | Action to link to. |
confirm | String | Guards the form submission with a javascript confirm popup. |
Résultat | String |
public LinkToWithPost ( String name, String controller, String action, object id ) : String | ||
name | String | Name for the link. |
controller | String | Controller to link to. |
action | String | Action to link to. |
id | object | The ID to be passed as a parameter for the action. |
Résultat | String |
public LinkToWithPost ( String name, String controller, String action, object id, String confirm ) : String | ||
name | String | Name for the link. |
controller | String | Controller to link to. |
action | String | Action to link to. |
id | object | The ID to be passed as a parameter for the action. |
confirm | String | Guards the form submission with a javascript confirm popup. |
Résultat | String |
public LinkToWithPost ( String name, String action, object id ) : String | ||
name | String | Name for the link. |
action | String | Action to link to on the current controller. |
id | object | The ID to be passed as a parameter for the action. |
Résultat | String |
public LinkToWithPost ( String name, String action, object id, string confirm ) : String | ||
name | String | Name for the link. |
action | String | Action to link to on the current controller. |
id | object | The ID to be passed as a parameter for the action. |
confirm | string | Guards the form submission with a javascript confirm popup. |
Résultat | String |
public LinkToWithPostAttributed ( String name, String controller, String action, String confirm, IDictionary attributes ) : String | ||
name | String | Name for the link. |
controller | String | Controller to link to. |
action | String | Action to link to. |
confirm | String | Guards the form submission with a javascript confirm popup. |
attributes | IDictionary | Additional attributes for the a tag. |
Résultat | String |
public LinkToWithPostAttributed ( String name, String controller, String action, object id, String confirm, IDictionary attributes ) : String | ||
name | String | Name for the link. |
controller | String | Controller to link to. |
action | String | Action to link to. |
id | object | The ID to be passed as a parameter for the action. |
confirm | String | Guards the form submission with a javascript confirm popup. |
attributes | IDictionary | Additional attributes for the a tag. |
Résultat | String |
public MapToVirtual ( String target ) : String | ||
target | String | Target path to map. |
Résultat | String |
public OptionGroup ( String label ) : String | ||
label | String | The label attribute. |
Résultat | String |
public Select ( String name ) : String | ||
name | String | Value for name and id attributes. |
Résultat | String |
public Select ( String name, IDictionary attributes ) : String | ||
name | String | Value for name and id attributes. |
attributes | IDictionary | Additional attributes for the select tag. |
Résultat | String |
public SubmitButton ( String value ) : String | ||
value | String | |
Résultat | String |
public SubmitButton ( String value, IDictionary attributes ) : String | ||
value | String | |
attributes | IDictionary | Additional attributes for the input tag. |
Résultat | String |
public TextArea ( String name, int cols, int rows, String value ) : String | ||
name | String | Value for name and id attributes. |
cols | int | cols attribute value. |
rows | int | rows attribute value. |
value | String | Text to place inside of the text area. |
Résultat | String |