C# Class MvcDating.Helpers.Extensions

Extends @Html class with new methods
Datei anzeigen Open project: nightwolfz/MvcDating

Public Methods

Method Description
DisplayAvatar ( this helper, string userName, string thumbSrc ) : System.Web.Mvc.MvcHtmlString

Display the users avatar

Image ( this helper, string src, string @class = "", object htmlAttributes = null ) : System.Web.Mvc.MvcHtmlString

Generate an image tag

ImageLink ( this helper, string href, System.Web.Mvc.MvcHtmlString htmlImage, object htmlAttributes = null ) : System.Web.Mvc.MvcHtmlString

Generate a image tag inside a link tag

Private Methods

Method Description
GetContentPath ( string src ) : string

Method Details

DisplayAvatar() public static method

Display the users avatar
public static DisplayAvatar ( this helper, string userName, string thumbSrc ) : System.Web.Mvc.MvcHtmlString
helper this
userName string
thumbSrc string
return System.Web.Mvc.MvcHtmlString

Image() public static method

Generate an image tag
public static Image ( this helper, string src, string @class = "", object htmlAttributes = null ) : System.Web.Mvc.MvcHtmlString
helper this
src string
@class string
htmlAttributes object
return System.Web.Mvc.MvcHtmlString

ImageLink() public static method

Generate a image tag inside a link tag
public static ImageLink ( this helper, string href, System.Web.Mvc.MvcHtmlString htmlImage, object htmlAttributes = null ) : System.Web.Mvc.MvcHtmlString
helper this
href string
htmlImage System.Web.Mvc.MvcHtmlString
htmlAttributes object
return System.Web.Mvc.MvcHtmlString