In ASP.Net 2.0, C# provides LastIndexOf string function that is most often used to get the position of the string pattern passed to the LastIndexOf function. C# LastIndexOf string function as the name suggests returns the last occurrence of the specified string pattern
