Wednesday 22 May 2013

Trim() function in asp.net using c#.

Introduction:-


 In this article , I have explained Trim() function in c#. Trim() is used for removing leading and trailing white-space character. If the current string is empty or all the current instance is white-space then function return empty value.

Example:-

TextBox1.Text.Trim();

This will remove all leading and trailing white-space character from input string.

No comments:

Post a Comment

Note: only a member of this blog may post a comment.