I am trying to reference a variable within my MasterPage but I am receiving errors.
I have tried
<%@ MasterType" %>
which gives the following error:
Compiler Error Message: CS0030: Cannot convert type 'IPAMIntranet.IPAMIntranetMaster' to 'ASP.ipamintranetmaster_master'
and
string tVar = ((MyNamespace.MyMasterPage)Master).variable
which gives the following error:
Unable to cast object of type 'ASP.ipamintranetmaster_master' to type 'IPAMIntranet.IPAMIntranetMaster'.
Does anyone know what is happening or am I missing something.