How do you limit the No. of chars with ASP.NET MVC
I am making a blog site, on the home page I wont to display the first 50 charact开发者_Python百科ers of the blog description, how do I do that with ASP.NET MVC?
string.substring(Math.Min(string.length, 50)) might be a starting point.
精彩评论