Namespaces and asp.net

Discussion in 'ASP .Net' started by =?Utf-8?B?bWdvbnphbGVzMw==?=, Jun 15, 2006.

  1. 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!
    =?Utf-8?B?bWdvbnphbGVzMw==?=, Jun 15, 2006
    #1
    1. Advertising

  2. =?Utf-8?B?bWdvbnphbGVzMw==?=

    Brock Allen Guest

    > 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.

    -Brock
    http://staff.develop.com/ballen
    Brock Allen, Jun 17, 2006
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Joseph Cooper

    ASP.NET NameSpaces

    Joseph Cooper, Feb 10, 2004, in forum: ASP .Net
    Replies:
    4
    Views:
    516
    Joseph Cooper
    Feb 11, 2004
  2. Chris Welch
    Replies:
    3
    Views:
    387
    Teemu Keiski
    Jul 22, 2005
  3. Tariq
    Replies:
    1
    Views:
    398
    Tariq
    Nov 29, 2005
  4. =?Utf-8?B?QXJuZQ==?=

    Namespaces in ASP.net 2.0

    =?Utf-8?B?QXJuZQ==?=, Dec 29, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    377
    Mr Newbie
    Dec 29, 2005
  5. =?Utf-8?B?YWJ1bmV0?=
    Replies:
    0
    Views:
    2,291
    =?Utf-8?B?YWJ1bmV0?=
    Jan 23, 2006
Loading...

Share This Page