T
Tokes
Hi there,
I'm using Visual Studio 2005 and I am working with a C# web project.
In this project I have a few directories to organise my pages and
controls.
When I create a new control in a sub directory (e.g. Controls), and
give it a name (e.g. MyUserControl), I find that in the generated .cs
file, the class name that has been assigned is
'Controls_MyUserControl', i.e. its full directory path, with
underscores instead of slashes. What I would have liked is if the
generated class was put inside a namespace (Controls), and that the
class name was just the name of the control (MyUserControl) - so that
its full name would be 'Controls.MyUserControl'.
Is there some way to tell Visual Studio to do this?
Thanks in advance,
- Tokes
I'm using Visual Studio 2005 and I am working with a C# web project.
In this project I have a few directories to organise my pages and
controls.
When I create a new control in a sub directory (e.g. Controls), and
give it a name (e.g. MyUserControl), I find that in the generated .cs
file, the class name that has been assigned is
'Controls_MyUserControl', i.e. its full directory path, with
underscores instead of slashes. What I would have liked is if the
generated class was put inside a namespace (Controls), and that the
class name was just the name of the control (MyUserControl) - so that
its full name would be 'Controls.MyUserControl'.
Is there some way to tell Visual Studio to do this?
Thanks in advance,
- Tokes