Is it possible use a HtmlHelper to display only a few characters of the text? how can I do this?
Asked
Active
Viewed 104 times
0
1 Answers
0
Something like this?
public static MvcHtmlString SubString(this HtmlHelper helper, string theString, int length)
{
return MvcHtmlString.Create(theString.Substring(0,length));
}

mxmissile
- 11,464
- 3
- 53
- 79