Make ASPX Pages Compile in a Different Namespace?

  • Thread starter Thread starter Steve - DND
  • Start date Start date
S

Steve - DND

Is it possible to get my ASPX pages to compile in a namespace different than
ASP? Why don't ASPX pages compile by default in the namespace of their
code-behind? This causes me to have to import namespaces on every page in
which I want to reference a class on another page, even if it's in the same
namespace in terms of code-behinds.

Thanks,
Steve
 
I am unaware of a way to do this - you can set the class name that it
compiles to using the ClassName attribute of the @Page directive, but the
documentation explicitly indicates, "This value can be any valid class name
but should not include a namespace."
 
Back
Top