function ShowHide(id) { document.getElementById(id).style.display == '' ? document.getElementById(id).style.display = 'none' : document.getElementById(id).style.display = ''; }
public static string GetStringCollection() { System.Text.StringBuilder strB = new System.Text.StringBuilder(); // Add strings into StringCollection System.Collections.Specialized.StringCollection strC = new System.Collections.Specialized.StringCollection(); strC.Add("Ram 1"); strC.Add("Ram 2"); strC.Add("Ram 3"); strC.Add("Ram 4"); strC.Add("Ram 5"); // Retrieve string from StringCollection System.Collections.Specialized.StringEnumerator coll = strC.GetEnumerator(); while (coll.MoveNext()) { strB.Append(coll.Current + ""); } return strB.ToString(); }