Groups | Blog | Home
all groups > visual studio .net general > november 2004 >

visual studio .net general : how to change the namespace of each ASPX code-behind?


Quentin Huo
11/24/2004 12:10:04 PM
Hi:

I am working on ASP.NET writen in C# and using VS.NET.

I created a project and then I copied and pasted some ASPX pages from other
projects. So I have to change the namespace of each copied ASPX page
code-behind to make them work in the project. Is there any easy way to
change their namespace from VS.NET IDE?

Thanks

Q.

Eric Cadwell
11/24/2004 2:33:52 PM
Ctrl + Shift + F. Hit Replace... then use Replace All.

HTH;
Eric Cadwell
http://www.origincontrols.com

Scott M.
11/24/2004 6:22:07 PM
Just put the class(es) that belong in different namespaces inside of new
namespace declarations.

Namespace foo
Public Class Page1

End Class
End Namespace

Namespace fooFoo
Public Class Page2

End Class
End Namespace

[quoted text, click to view]

AddThis Social Bookmark Button