protected void SkillSearchButton_Click(object sender, EventArgs e) { UserBO ob = new UserBO(); ob.skillName = SkillSearch.Text; clsBLL ob1 = new clsBLL(); string skillList = ob1.SkillSearchBLL(ob); string[] sl; try { sl = skillList.Split(' '); } catch { sl = null; } if (sl.Length == 1 && sl[0] != "") { skillCard1.Text = sl[0]; skillCard2.Text = "none-Found"; skillCard3.Text = "none-Found"; } else { skillCard1.Text = "none-Found"; skillCard2.Text = "none-Found"; skillCard3.Text = "none-Found"; } }