Example Text Input Field: i used the the Text.StartTrim().EndTrim() it coming correctly while adding in the gridview from textbox. Hope this will help you. 3. As you may know, HTML has two types of elements for text input fields: for a single-line input; and