private void Service_Challan_GetByTonerRequestNo(string requestNo) { Business.Service.ServiceBook objServiceBook = new Business.Service.ServiceBook(); DataSet ds = new DataSet(); ds = objServiceBook.Service_Challan_GetByTonerRequestNo(requestNo); if (ds != null) { if (ds.Tables[0] != null && ds.Tables[0].Rows.Count > 0) { tdConsigneeName.InnerHtml = ds.Tables[0].Rows[0]["CustomerName"].ToString(); tdRemarks.InnerHtml = ds.Tables[0].Rows[0]["Remarks"].ToString(); } if (ds.Tables[1] != null && ds.Tables[1].Rows.Count > 0) { tdDescription.InnerHtml = ds.Tables[1].Rows[0]["SpareName"].ToString(); } } PrintDateTime.InnerHtml = System.DateTime.Now.ToString("dd/MMM/yyyy HH:MM tt"); }