private void PopulateSummaryHeader(string empNumber, string fName, string lName, double hrsWorked)
{
lblEmpNumber.Text = empNumber;
lblFirstName.Text = fName;
lblLastName.Text = lName;
lblDateRange.Text = "mm/dd/yy - mm/dd/yy";
lblTotalHours.Text = Convert.ToString(hrsWorked.ToString("#.00"));
}
"lblEmpNumber" is a defined in an .aspx page as follows:
and is also declared in the aspx.desinger.cs
Is there enough information here to determine what I have done wrong?



Rodney JohnsonPosted Sep 5, 2010, 10:06 PM
Sam HobbsPosted Sep 5, 2010, 8:06 PM
Also, it helps to put all the infromation in the body of the post; you say "a run time exception in the subject line of this question" and it helps to put the error in the body.
For questions such as this, it is usually necessary to be specific about what line is failing. Without knowing what line, we don't know what is failing. You need to determine what object is not set and determine why it is not set.