C# Class System.Web.Mvc.HtmlHelperExtension

Show file Open project: adam7/CommunityCourses

Public Methods

Method Description
CheckBoxList ( this helper, IList selectedItems, IEnumerable items, string propertyName ) : string
MenuItem ( this helper, string linkText, string actionName, string controllerName ) : string

This helper method renders a link within an HTML LI tag. A class="selected" attribute is added to the tag when the link being rendered corresponds to the current controller and action. This helper method is used in the Site.Master View Master Page to display the website menu.

Method Details

CheckBoxList() public static method

public static CheckBoxList ( this helper, IList selectedItems, IEnumerable items, string propertyName ) : string
helper this
selectedItems IList
items IEnumerable
propertyName string
return string

MenuItem() public static method

This helper method renders a link within an HTML LI tag. A class="selected" attribute is added to the tag when the link being rendered corresponds to the current controller and action. This helper method is used in the Site.Master View Master Page to display the website menu.
public static MenuItem ( this helper, string linkText, string actionName, string controllerName ) : string
helper this
linkText string
actionName string
controllerName string
return string