[WebMethod]
public string insertUtil(string param)
{
string result = string.Empty;
StringBuilder sb = new StringBuilder();
string[] paramsArray = param.Split(',');
sb.Append("SqlParameter sp = new SqlParameter();");
foreach (var item in paramsArray)
{
string s = Regex.Replace(item, "^(string )", "").Trim();
sb.Append("if (string.IsNullOrWhiteSpace(" + s + ")){");
// sb.Append(s);
sb.Append("}");
}
result = sb.ToString();
return result;
}