The Design Artisan
The Design Artisan

Reputation: 23

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.

Upvotes: 0

Views: 69

Answers (1)

Gubr
Gubr

Reputation: 324

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

Upvotes: 0

Related Questions