public List <string> search(string str) { if (str != "") { // Define Output HTML Formatting //MOVE THIS TO JAVASCRIPT. string t = ""; List <string> original = gen.SearchPrefix(str, 10); for (int i = 0; i < original.Count; i++) { string html = ""; html += "<ul><li class=\"result\">"; html += "<a href=\"urlString\" target=\"_blank\">"; html += "</a><h3>nameString</h3>"; html += "</li>"; html += "</ul>"; html = html.Replace("nameString", original[i]); t += html; original[i] = html; } return(original); } else { return(new List <string>()); } }
public List <string> search(string str) { if (str != "") { /// Define Output HTML Formatting List <string> original = gen.SearchPrefix(str, 10); if (original.Count > 1 && original[0][0] == str[0]) { return(original); } else { return(new List <string>()); } } else { return(new List <string>()); } }