String Length in C# – String Functions C#



String Length Function in C#

Length  – The C# String Length property used to get the length  of string. The string Length property used to calculate the character length of string. Length method returns the integer value in result.


C# Example of String Length

C# Example for calculate the  length string using C# String Length property.

meeraacademy.com
String Length in C# Example

C# code for button click events :

protected void Button1_Click(object sender, EventArgs e)
{
     Label1.Text = "Length = " + TextBox1.Text.Length.ToString();
}
meeraacademy.com
String Length in C# Example

Related ASP.Net Topics :

Subscribe us

If you liked this c#.net post, then please subscribe to our YouTube Channel for more c#.net video tutorials.

We hope that this asp.net c# tutorial helped you to understand String Length Property.


Next asp.net tutorial we will learn about C# Sting Replace() Function.


Leave a Reply

Your email address will not be published. Required fields are marked *