Wednesday, 11 May 2016

C# - ASP.NET - String - get first character (letter) of a string


WATCH THIS EXAMPLE ON YOUTUBE

            string test = "ABCDEFG";
            Response.Write(test.Substring(0, 1));

No comments:

Post a Comment