public string outputfriendship() { FriendShipManager _friendship = new FriendShipManager(); List <FriendShip> lstfriendship = _friendship.GetLinkList_all(); StringBuilder _str = new StringBuilder(); if (lstfriendship != null && lstfriendship.Count > 0) { for (int i = 0; i < lstfriendship.Count; i++) { _str.Append("\n\t\t<div class='fdship'><a target='_blank' href='" + lstfriendship[i].FUrl + " '>" + lstfriendship[i].Fword + "</a></div>"); } _str.Append("\n\t</ul>"); } else { return(""); } return(_str.ToString()); }