ksd123
asked on
Remove all spaces in c#
Hi Experts,
I have below mapping class and from client side will get registrationnumber data in the form of 123 456 7899 and should trim all the spaces (1234567899) and save it to database.what is best way to achieve this?
I have below mapping class and from client side will get registrationnumber data in the form of 123 456 7899 and should trim all the spaces (1234567899) and save it to database.what is best way to achieve this?
public class UserMapp
{
public void Map(user userobj, customer custobj)
{
userobj.registrationnumber=custobj.registrationnumber;
}
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you all
I've experienced similar, this happens always and then later very occasionally it is different, how do we restore it to the original format. Ooops!!!!!