protected void GetSectionByID() { CustomProfile profile = CustomProfile.GetProfile(); iWarehouseClient Warehouseclient = new iWarehouseClient(); try { mSection sec = new mSection(); sec = Warehouseclient.GetWarehouseSectionByID(long.Parse(hdnsectionID.Value), profile.DBConnection._constr); if (sec.Name != null) { txtsection.Text = sec.Name.ToString(); } if (sec.SortCode != null) { txtsortcode.Text = sec.SortCode.ToString(); } if (sec.Description != null) { txtdescription.Text = sec.Description.ToString(); } if (sec.CustomerID != null) { hdncustomerID.Value = sec.CustomerID.ToString(); } hdnCompanyID.Value = sec.CompanyID.ToString(); } catch (System.Exception ex) { Login.Profile.ErrorHandling(ex, this, "WarehousePassage", "GetPassageID"); } finally { Warehouseclient.Close(); } }