>// Instantiate look-up (read-only) business objects >//register labwork bizobj >this.oLabWork = (LabWork)this.RegisterBizObj(new LabWork()); > >//register letterlog bizobj >this.oLetterLog = (LetterLog)this.RegisterBizObj(new LetterLog()); > >//register guarantor bizobj >this.oGuarantor = (Guarantor)this.RegisterBizObj(new Guarantor()); > >//register model bizobj >this.oModel = (Model)this.RegisterBizObj(new Model()); > >if (!IsPostBack) >{ > // populate look-up (read-only) datasets and persist across application > // populate the LetterLog Dataset for this patient > Session["dsLetterLog"] = this.oLetterLog.GetLetterLogByptno(custid); > > // populate the LabWork DataSet for this patient > Session["dsLabWork"] = this.oLabWork.GetLabWorkBycustno(custid); > > // populate the Guarantor Dataset for this patient > Session["dsGuarantor"] = this.oGuarantor.GetGuarantorBycustno(custid); > > //populate the Model Dataset for this patient > Session["dsModel"] = this.oModel.GetModelBycustno(custid); >} >>