.netmodelsubstrcharacter-limit

Display characters in limit in .net


I have a paragraph in @Model.FileName , I want to display first 20 characters. Any easy possible solution. Here I means as substr() function work in PHP. I want same in .NET.


Solution

  • in .net it is called Substring it will be there for any string