Author: Bobby-Z | Posted on: 1/26/2010 10:17:43 PM | Views : 268

I did what should have been a simple code that changes an image inside a loginview based upon the date.
It says "object references not set to an instance" which mean Nope can't find it.
but I dont see anything wrong with my code
SeasonImage = (Image)Page.Master.FindControl("MasterTabsLoginView").FindControl("SeasonImage"); // Display Proper Image based upon MasterPageThisMonth Integer if (MasterPageThisMonth == 01) // January { if (MasterPageThisDay < 15) // Display New Years Banner until the 14th { SeasonImage.ImageUrl = "~/Images/Seasons/Banner_NewYear.jpg"; } if (MasterPageThisDay >= 15) // Display Solutions Banner until the end of Jan { SeasonImage.ImageUrl = "~/Images/Seasons/Banner_Solutions.jpg"; } } < ...

Go to the complete details ...