protected void GetFloarByID() { CustomProfile profile = CustomProfile.GetProfile(); iWarehouseClient Warehouseclient = new iWarehouseClient(); try { mFloar Floar = new mFloar(); Floar = Warehouseclient.GetWarehouseFloarbyID(long.Parse(hdnfloarID.Value), profile.DBConnection._constr); if (Floar.Name != null) { txtfloarname.Text = Floar.Name.ToString(); } if (Floar.SortCode != null) { txtsortcode.Text = Floar.SortCode.ToString(); } if (Floar.Capacity != null) { txtcapacity.Text = Floar.Capacity.ToString(); } if (Floar.Description != null) { txtdescription.Text = Floar.Description.ToString(); } if (Floar.CustomerID != null) { hdncustomerID.Value = Floar.CustomerID.ToString(); } hdnCompanyID.Value = Floar.CompanyID.ToString(); } catch (System.Exception ex) { Login.Profile.ErrorHandling(ex, this, "WarehouseFloar", "GetFloarByID"); } finally { Warehouseclient.Close(); } }