Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Adding namespaces to webcontrols

Thread Tools

Adding namespaces to webcontrols

Posts: n/a
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?



Reply With Quote
Posts: n/a
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.

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
following of thread: "Adding namespaces to code behind automatically" Jedufa ASP .Net 1 03-20-2007 02:36 PM
Object reference not set to an instance of an object. System.Web.UI.WebControls.ListItemCollection.SaveViewState() System.Web.UI.WebControls.ListControl.SaveViewState() Brano ASP .Net 3 11-08-2005 12:29 PM
Adding namespaces to code behind automatically (C#) cpnet ASP .Net 6 07-28-2004 04:09 AM
Adding WebControls in HttpHandlers Rajagopalan ASP .Net 1 01-16-2004 09:25 PM
Adding a list item to the System.Web.UI.WebControls.DropDownList Chris ASP .Net 2 07-22-2003 05:18 PM