Buy Questpond's video subscriptions on
huge discount
.
Online: 2478
Home
Articles
Interviews
Forums
For Beginners
Popular Questions
ITIL Career Advice
PMP Career Advice
Career Advices
Codes
Videos
ASP.NET
ASP.NET MVC
Android Intel XDK
Sql Server
AngularJS
Bootstrap
Backbone.JS
MongoDB
LESS (CSS)
jQuery
WPF
WWF
SSIS
LightSwitch
Tutorials
News
ASP.NET MVC
|
Be Interview Ready
|
Top Performers
|
DNF MVP
|
Top Posts
|
Winners
|
Subscribe
|
Catalogs
Welcome Guest !
Register
Login
Home
>
Interviews
>
ASP.NET
>
Loading ...
How to remove both leading and trailing spaces from string?
Posted by
vishalneeraj-24503
on 12/12/2013 | Category:
ASP.NET Interview questions
| Views: 1979 |
Points: 40
Post
|
Interview FAQs
|
Exclusive Questions
|
Interview Home
Answer:
Use Trim() method of Dot Net.we can remove any start and end space of string value.
For Example:-
string str = " Vishal ";
str = str.Trim();
Output will be:- "Vishal"
Asked In:
Many Interviews |
Alert Moderator
Bookmark It
< Previous :
How to remove only leading space from string?
Next > :
How to make all the character capitalize in Javasc ...
Comments or Responses
Login to post response
More Interview Questions by vishalneeraj-24503
How to make all the character capitalize in Javascript?
How to get value as capital letter in Sql-Server.
What will be the output of below query? Select Difference('Gree ...
What will be the Output of below query? Select iif(2>=2,null, ...
How to get Browser version through Javascript?
What will be output of below Javascript function? <script type=& ...
How to get values from Web.Config file which is defined in AppSettings ...
What is the output of below Javascript function? <script type=&q ...
Latest Interview Questions
What will be output of following function when called? public strin ...
How to assign a value to a textbox through javascript?
DB2 - Display the employee details who are working from more than 1 an ...
DB2 - Fetch the current date and time in the following format 24/APR ...
DB2 - Find the NAMEs that have an even number of letters in them
DB2 - Find the count of departments having average salary greater than ...
DB2 - Write a query to get the employee name who joined the company re ...
DB2 - Write a query to get the employee name who joined the company re ...
More ...