this is where where the error is happening, any thoughts? I’m sure it’s something simple.
Control masterC = Master.FindControl("ContactPlaceHolder_Header");
This is defined in Website.master.cs which is not a nested master page (it doesn’t have a master page of its own).
The
Masterproperty of a master page refers to its master page.Since you don’t have one for the master page on which this code is defined,
Masterisnull, explaining the exception.Just change your code to:
And all will be right in the world (or at least the place this master page takes in it).