G
Guest
Hi. I really like to develop most of my stuff without havig a Visual Studio
WebForms project. In other words, I largely develop "loose" .ASPX and .CS
files that dynamically compile when appropriate. Everything always works
great.
But here's my problem: If I try to do a <% @ Import Namespace=... %> for
something that doesn't "automatically" get a reference in every ASPX file
(e.g. System..., etc.), it seems like there's no way to use the Namespace
from the ASPX file.
Am I wrong? Is there a directive that can be included INSIDE a .ASPX file or
its Code-Behind .CS file which will cause the proper Assembly to be made
available during automatic compilation? Or does this mean that I would have
to force these Assemblies into the GAC to achieve this?
Particular example is the use of the MS Office Automation objects from ASPX
(I know it's not recommeded) from an ASPX file that's not part of a "Project".
Thanks for your help.
Alex
WebForms project. In other words, I largely develop "loose" .ASPX and .CS
files that dynamically compile when appropriate. Everything always works
great.
But here's my problem: If I try to do a <% @ Import Namespace=... %> for
something that doesn't "automatically" get a reference in every ASPX file
(e.g. System..., etc.), it seems like there's no way to use the Namespace
from the ASPX file.
Am I wrong? Is there a directive that can be included INSIDE a .ASPX file or
its Code-Behind .CS file which will cause the proper Assembly to be made
available during automatic compilation? Or does this mean that I would have
to force these Assemblies into the GAC to achieve this?
Particular example is the use of the MS Office Automation objects from ASPX
(I know it's not recommeded) from an ASPX file that's not part of a "Project".
Thanks for your help.
Alex