I am using FindControl in my page and try to cast the control found to
a specific control.
((Controls_Foot er)this.Master. FindControl("Fo oter1")).OnPrin tToPdf +=
new Controls_Footer .PrintToPdf(Foo ter1_OnPrintToP df);
This works but after a while doesnt compile anymore in Visual Studio.
"Type Controls_Footer not found" is the error.
I can then change the web.config to compile in release and it compiles
again - well most of the time.
It compiles without problems on my buildserver which uses a
webdeployment - project.
What is wrong here?
Mathias
a specific control.
((Controls_Foot er)this.Master. FindControl("Fo oter1")).OnPrin tToPdf +=
new Controls_Footer .PrintToPdf(Foo ter1_OnPrintToP df);
This works but after a while doesnt compile anymore in Visual Studio.
"Type Controls_Footer not found" is the error.
I can then change the web.config to compile in release and it compiles
again - well most of the time.
It compiles without problems on my buildserver which uses a
webdeployment - project.
What is wrong here?
Mathias
Comment