private void BindList() { DataTable dt = tmo_order.GetCKW(txtcode.Text, hidfyID.Value, txtbatch.Text).Tables[0]; if (dt.Rows.Count > 0) { rptList.DataSource = dt; rptList.DataBind(); } else { rptList.DataSource = null; rptList.DataBind(); } }