3
Reply

remove comma when string is null c#

Ask a question
how to remove comma in string value i.e
 
 
i add to value like=
name = firstname+","+nickname;
 
show= devendra,dev
 
but when nickname ins not available then it show like:
 
devendra,
but i want when nickname is empty then is show only
 
devendra 

Answers (3)