Working With Strings in .NET Support
During the course of this tutorial you will learn about the string class and many of the methods that it contains to make working with strings relatively easy, from converting the case of a string to finding out if it begins with, ends with or equals a specified value. Basic string formatting using the Format method and finding and extracting sub strings within a string are also covered. All the tasks typically associated with working with string data is covered such as copying, inserting, removing and replacing text in a string as well as how to clean white space from the ends of user input and working with string arrays.
Overview
We will look at the following methods of the String class:
- An introduction to the String Class
- ToLower and ToUpper Methods
- StartsWith and EndsWith Methods
- Equals Method
- Concat Method
- Format Method
- IndexOf and LastIndexOf Methods
- IndexOfAny and LastIndexOfAny Methods
- Substring Method
- Copy Method
- Insert Method
- Remove Method
- Replace Method
- Trim, TrimStart and TrimEnd Methods
- ToCharArray Method
- Split Method
- Join Method
I live in Perth, Scotland and am senior programmer with WebXeL.com Ltd. I have been involved in computer programming since 1990, web based programming using ASP since 1997 and have been building ASP.NET applications since ASP.NET Beta 2 was released.
I have been an avid Dreamweaver user since Version 1 was launched and with the release of MX have moved into developing extensions. WebXeL run a website dedicated to the development of free and commercial Dreamweaver MX extensions for ASP.NET, the site can be found at http://www.webxel-dw.co.uk.
See All Postings From Kevin Marshall >>