TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Rodney Johnson
NA
80
0
Object reference not set to an instance of an object
Sep 5 2010 7:34 PM
Below is the code that generates a run time exception in the subject line of this question.
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:
<li><span class="label">ID:</span> <strong><asp:Literal ID="lblEmpNumber" runat="server" Text=""></asp:Literal></strong></li>
and is also declared in the aspx.desinger.cs
Is there enough information here to determine what I have done wrong?
Reply
Answers (
2
)
Arabic PDF Forms in C#
ASP.net Marque link from database example required