VB.Net SubString Function in ASP.Net

In ASP.Net web applications, VB.Net Substring function can be used to get a part of the specified string. The Substring function returns the string part starting from the specified start index value passed to it. Another overloaded method of Substring function accepts an optional length parameter along with start index that returns the Substring of specified length starting from the specified index.

 

Try the following sample with different values to understand the VB.Net Substring function:

 

Enter String:
Start Index:
Length :
[optional]
Output: