public void LoadPage(int id, string returnUrl)
        {
            // select a record by primary key(s)
            StudentEnquiryAPI.BusinessObject.RoleMaster objRoleMaster = RoleMaster.SelectByPrimaryKey(id);

            // assign values to this page's bound property
            RoleMaster = objRoleMaster;

            // assign the return url
            ReturnUrl = returnUrl;
        }
Example #2
0
        public PageResult LoadPage(int id, string returnUrl)
        {
            // select a record by primary key(s)
            StudentEnquiryAPI.BusinessObject.RoleMaster objRoleMaster = RoleMaster.SelectByPrimaryKey(id);

            // create the model used by the partial page
            AddEditRoleMasterPartialModel model = new AddEditRoleMasterPartialModel();

            model.Operation  = CrudOperation.Update;
            model.ReturnUrl  = returnUrl;
            model.RoleMaster = objRoleMaster;

            // assign values to the model used by this page
            PartialModel = model;

            // assign the return url
            ReturnUrl = returnUrl;

            return(Page());
        }
 /// <summary>
 /// Sets data needed on page intialization.
 /// </summary>
 private void SetData()
 {
     RoleMaster = new StudentEnquiryAPI.BusinessObject.RoleMaster();
 }