remove comma from string c# code example
Example 1: remove comma from string c#
string data="DIKhan,Pakistan";
//Removing All Comma's from String
string address=data.Replace(","," ");
// OutPut will be: DIKhan Pakistan
Example 2: remove comma from string c#
string data="DIKhan,Pakistan";
//Removing All Comma's from String
string address=data.Replace(","," ");
// OutPut will be: DIKhan Pakistan
Example 3: how to remove all comma from string c#
string data="Mumbai,400049,Andheri ";
//Removing All Comma's from String
string address=data.Replace(","," ");