Home >
Code >
C#
>
Identify the given text ends with specific string using String.EndsWith() method in C#.NET
Identify the given text ends with specific string using String.EndsWith() method in C#.NET
by
Thamilselvanj
on
Dec 19, 2011
Category:
C#
|
Views:
73
|
Points:
25
|
Silver ★
|
|
|
Below code will help you to check whether the given text ends with specific mentioned string or not.
private void StringEndsWith() { string SampleString = "Identify the given text ends with specific string using String.EndsWith() method in C#.NET"; string GivenString = "in C#.NET"; if (SampleString.EndsWith(GivenString)) { Response.Write("The Sample String ends with " + GivenString); } }
|
Like this code? Bookmark and Share:
|
|
|
|
No Response found!
|
|
|
|
|