public string DelLastComma(string str)
{
try
{
return str.Substring(0, str.LastIndexOf(","));
}
catch (Exception ex)
{
return str;
}
}