0
我有一個數據表,我需要循環並刪除任何特殊字符,如'和&以及任何空字符串。C#Datatable Escape特殊字符
我需要檢查的列有:
Address1 - need to be checked for special chars and empty strings
Address2 - need to be checked for special chars and empty strings
Address3 - need to be checked for special chars and empty strings
lat - need to check its not 0
lng - need to check its not 0
然後我需要修復的數據表中該記錄並移動到下一個,重複,直到整個數據表已定。我不想更新底層數據庫。
我有一個谷歌地圖API網頁,它失敗,如果任何字段爲空或包含特殊字符。我將把固定的數據表綁定到地圖上。
任何幫助將非常感激,
謝謝
如果您顯示了一些您的實際代碼,我們可以幫助解決這些問題。或者這是一個'寫代碼 - 請'的問題嗎? – Steve 2014-12-03 12:34:42
你的解決方法很簡單,你只需發佈你的需求來做你的家庭作業。無論你寫什麼 – 2014-12-03 12:35:24