string requiredStr = inputStr.Substring(0,inputStr.IndexOf('#'));
string s= dt.rows[0]["MyField"].ToString().Replace("#;7","");
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)