I might be completely wrong about this (in a way I hope I am...) but try replacing this
with this...Code:if (bolFlag == true) { this.txtEmployeeID.Text = convert.tostring(FM.PropEmployeeID); this.txtEmployeeName.Text = convert.tostring (FM.PropEmployeeName); this.txtEmployeeWages.Text = Convert.ToString(FM.PropWages); this.txtEmployeeBankAcct.Text = Convert.ToString(FM.PropBankAccount); }
Minor points...Code:if (bolFlag == true) { this.txtEmployeeID.Text = Convert.ToString(FM.PropEmployeeID()); this.txtEmployeeName.Text = Convert.ToString (FM.PropEmployeeName()); this.txtEmployeeWages.Text = Convert.ToString(FM.PropWages()); this.txtEmployeeBankAcct.Text = Convert.ToString(FM.PropBankAccount()); }
1. Assume something happened when putting the code in forum as the call to Convert.ToString was incorrect in two places...
2. You can use code tags to format code in the post. They are simple to use...[code]<your code here>[ /code] (Remove the extra space at the beginning of the closing tag.
Major point...
I'm curious as to how you came about this code. Is this a project you're working on? Are you working on your own? The problem seems obvious to me and I would have thought that it would have been obvious to you too. Perhaps there is something I'm missing...




Reply With Quote