protected void lnkShwoAll_Click(object sender, EventArgs e) { Cls_Business_TransHwayBulkOperation obj = new Cls_Business_TransHwayBulkOperation(); string pro_output = obj.bulkUploadDuplicate(Session["username"].ToString(), ViewState["uniqueid"].ToString()); string raw_message = pro_output.Split('#')[1]; if (raw_message.Contains('~')) { string[] err_data = raw_message.TrimEnd('~').Split('~'); DataTable dtErrData = generateDataTable(err_data); rptErrData.DataSource = dtErrData; rptErrData.DataBind(); pnlErrData.Visible = true; } }