When I run the following code, I got an error(object reference not set to an instance of an object ) related to the line of code coloured with red shown in the code below:
Can anyone please help me with this error
C# |
C# |
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Kevin Aung46 reputationPosted Jan 14, 2011, 6:53 PM EST
Note: .ToString() will error out if the value is null.
Ali Alfaraj62 reputationPosted Jan 14, 2011, 6:57 PM EST
Regards,
Ali