protected void Button3_Click(object sender, EventArgs e) { try { using (IAssetComponent assetservice = new AssetComponent()) { Asset myasset = new Asset(); myasset.ID = int.Parse(txtassetID.Text); myasset = assetservice.SelectAsset(myasset); txtroomid.Text = myasset.RoomID.ToString(); txtname.Text = myasset.Name; CheckBox1.Checked = myasset.IsEnabled; } } catch (Exception) { throw; } }