Adding namespaces to webcontrols

Discussion in 'ASP .Net Web Controls' started by daokfella, Mar 15, 2007.

  1. daokfella

    daokfella Guest

    How do I put my webcontrols into specific namespaces? I'm a little
    confused now with the partial classes and the .ascx.designer.vb file.
    In 2003, I would just add the NameSpace declaration in my code-behind
    page. Is this how it's done in 2005, but to both the designer and
    partial class? Is not the designer file "rewritten" and will lose any
    changes I make to it?

    Thanks,

    jason
    daokfella, Mar 15, 2007
    #1
    1. Advertising

  2. daokfella

    daokfella Guest

    FYI, you can add the namespace to the aspx file in the page directive.
    This automatically adds the namespace to the auto-generated code-
    behind. However, you still have to add the namespace to your partial
    class manually. This is what I've been doing.
    daokfella, Apr 5, 2007
    #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. Chris
    Replies:
    2
    Views:
    1,757
    Chris Barrow
    Jul 22, 2003
  2. Rajagopalan

    Adding WebControls in HttpHandlers

    Rajagopalan, Jan 15, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    319
    John Saunders
    Jan 16, 2004
  3. Ian
    Replies:
    1
    Views:
    310
  4. cpnet
    Replies:
    6
    Views:
    621
    cpnet
    Jul 28, 2004
  5. Jedufa
    Replies:
    1
    Views:
    404
    Jedufa
    Mar 20, 2007
Loading...

Share This Page