由于错误对象引用未设置为对象实例而使我头疼不已。请参阅下面的代码。违规行标有 <!--->>>>>>>
string htmlOutput = " ";
htmlOutput += "<h3>employee: " + employee.lastName + ", " + employee.firstName + " (" + thisForm.employeeID + ")</h3>" +
"<h3>Submitted To: " + thisForm.boss + "</h3>" +
if (job1.JRN != "" || job1.JRN != "INVALID")
{
<!--->>>>>>>htmlOutput += "<hr /><h4>Job 1</h4> " + "<h3>" + database.getjobName(job1.JRN) + " (" + job1.JRN + ")</h3>";
htmlOutput += "<h3>Date of Last Attendance: " + job1.month + " " + job1.day + ", " + job1.year + "</h3>";
htmlOutput += "<h3>Pass/Fail: " + job1.passFail + "</h3>";
}