Namespaces and asp.net

G

Guest

I have a project dedicated to custom controls.
(ie..dropdownlists, datagrids, mouseoverbuttons, etc...)

and I have folders for each control group.
Ajax, DataGrids, Buttons

I do add the control namespace at the top of my aspx pages like so:
<%@ Register TagPrefix="vs" namespace="Project.WebControls.Ajax"
Assembly="Project.WebControls" %>


Question: What if I had controls in different namespaces? Would I have to
register the assembly twice?

Have I went down a wrong path for namespaces?

<%@ Register TagPrefix="vs" namespace="Prjoect.WebControls.Ajax"
Assembly="Project.WebControls" %>
<%@ Register TagPrefix="vs" namespace="Project.WebControls.Buttons"
Assembly="Project.WebControls" %>

help!
 
B

Brock Allen

Question: What if I had controls in different namespaces? Would I
have to register the assembly twice?

Yep, because the register directive is registering the assembly *and* the
namespace.
 

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

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,823
Latest member
Nadia88

Latest Threads

Top