我想從我獲得的是在調試字符串中刪除,
是從字符串在asp.net刪除最後一個字符不工作
27/1, 106/2,
注意,
後有空間了。
所以。我試着用下面的代碼
if (txt712.Text != "")
{
string strText = txt712.Text;
strText = strText.Remove(strText.Length - 2, 1);
xw.WriteElementString("SURVEY_AREA_7_12", strText);
}
但同時節省它給我的錯誤作爲
無效的號碼
要刪除所有「,」還是隻刪除最後一個。 – lukai