troubleshooting Question

namespaces in Web.config and "imports" statement

Avatar of JenebyM
JenebyM asked on
.NET ProgrammingASP.NETVisual Basic.NET
4 Comments1 Solution2264 ViewsLast Modified:
I am looking for ways to improve performance and reduce maintenance on may ASP.NET application that currently comprise 58 aspx pages that are all working fine. I have now successfully added third party custom controls to my application by updating the reference dlls, registering the assembly and using the "imports" on the first few pages. Finally I have update the web.config file with the following
           <add namespace="myCustomContrlols"/>

my question is:
1. Having added the namespace in the web.config file, Is it neccessary to have "imports myCustomControl" statement on each of the 58 pages that will be using the new custom control?
2. Can I move all the "imports" statements to the web.config file under <pages> so that I have one place to maintain these as opposed to 58.


Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 4 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros