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