Avoid including @ Register tag on every page

S

Steve Wesorick

I have written several custom web controls for my aspx pages. In
order to use any of them, I need to include the following line of code
at the top of every aspx page:

<%@ Register TagPrefix="MyPrefix" Namespace="MyNamespace"
Assembly="MyAssembly" %>


Is there any way to declare this at the project, solution, or
web.config level, so I don't need to include it on every page in the
site?
 
V

Victor Garcia Aprea [MVP]

Hi Steve,

No there isn't. Sorry.

--
Victor Garcia Aprea
Microsoft MVP | ASP.NET
Looking for insights on ASP.NET? Read my blog:
http://obies.com/vga/blog.aspx

To contact me remove 'NOSPAM'. Please post all questions to the newsgroup
 
P

Patrice Scribe

AFAIK the page is created from a template.

You could update this template to have this line automatically included
(having to delete it if not needed).

The templates should be similar to :
C:\program files\Microsoft Visual Studio
..NET\Vb7\VBWizards\WebForm\Templates\1036
depending the release, language and programming language you are using...

Patrice
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top