I have read this question to get first char of the string. Is there a way to get the first n number of characters from a string in C#?
Try below code
string Name = "Abhishek"; string firstfour = Name.Substring(0, 4); Response.Write(firstfour);