String prod =“披萨咖啡馆”,我想打印“PizzaCafe”。如何在Asp.net中做到这一点?我想减少披萨和咖啡馆之间的空间?
String abc = TextBox1.Text; 如果TextBox1.Text =“披萨咖啡馆”,我想将其转换为“PizzaCafe” row.Elements.Add(new ListEntry.Custom(){LocalName =“name”,Value = TextBox1.Text});
答案 0 :(得分:0)
abc.Replace(" ", string.empty);