Just as a hint .. if it doesn't work as stated, try rewriting it?
IStatusPage iPage = Page as IStatusPage;
if (iPage != null)
iPage.[interface code]
If nothing else, atleast you should be able to see if the "Page as
IStatusPage" is causing the problem, if so the class isn't interited from
IStatusPage after all.
/Micke
"Paul" <pa*********@corpoflondon.gov.ukwrote in message
news:11*********************@p79g2000cwp.googlegro ups.com...
Hi all,
I am trying to cast my page to an Interface at design time with no joy.
sControl = ((IStatusPage)Page).[Interface code]
Despite this page 100% being inheriting this interface it will not
work.
I really do not want to cast to a class.
Any hints on where I am going wrong here?