private void bindData() { string reads = ""; if (Session["readMsg"].ToString() != "") { string[] ids = Session["readMsg"].ToString().Split(' '); reads = "("; for (int i = 0; i < ids.Length; i++) { reads += (i == ids.Length - 1)?ids[i] + ")":ids[i] + ","; } } Repeater1.DataSource = AddSQLStringToDAL.GetDT4Message(Session["currentRole"].ToString(), reads); Repeater1.DataBind(); }