Hi all again.
Another productive week of coding, debugging and learning!
I have gotten my AETransfers.aspx up working great and it brings you to AETransfer.aspx when you select Add New Transfer.
The form comes up the logic to display certain parts of the form load as should.
I fill the form out, and press save and I get the following error in my LoadObject from Screen block: Object Reference not set to an instance of an object.
It points to the baseEO.pName = pName.Text;
To get to where I am at I followed the pattern used in the Administration/Users.aspx and Administration/User.aspx pages. The pName.Text is not null and I have verified that the data is being passed. Any idea as to what it could be looking for or what I need to do to correct it?
protectedoverridevoid LoadObjectFromScreen(AETransfersEO baseEO)
baseEO.pName = pName.Text;
baseEO.RequestDate = Convert.ToDateTime(reqDate.Text);
baseEO.dob = Convert.ToDateTime(dob.Text);
baseEO.transFacility = transFacility.SelectedValue.ToString();
baseEO.facilityPhone = facilityPhone.Text;
baseEO.personCalling = personCalling.Text;
Here is my Save Method
void Master_SaveButton_Click(object sender, EventArgs e)
ENTValidationErrors validationErrors = newENTValidationErrors();
AETransfersEO aETransfer = (AETransfersEO)ViewState[VIEW_STATE_KEY_AETRANSFER];
if (!aETransfer.Save(ref validationErrors, 1))
Master.ValidationErrors = validationErrors;