Chapter 6 Try It Out errors
PG 196 I follow the steps but I get these errors:
Server Error in '/Chapter06' Application.
--------------------------------------------------------------------------------
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
It highlights the line of code that says img.Visible = False
Also in step #5 on page 197, it instructs to "Select the DataList control." I could not find this control. I added my own DataList control and tried to see if would work that way. It did not. I downloaded all the code from this site so I'm very confused now.
Could someone please help and explain??????
Thank you.
|