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!
 

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

Top