-
Inheritance and Namespaces
Hi,
I am trying to make some head way into the dotnet stuff and I am
experiencing something that is quite annoying.
I am use to creating web applications with multiple folders and in each of
those creating an index.asp page. However, when I try and add a web form
(index.aspx) in directory B I receive the following error saying:
class 'index' and class 'index' (defined in ..\directory A\index.vb)
conflict in namespace "PROJECT NAME".
Has anyone else experienced this?
Is there a way to not default the inheritance in page creation process?
Any other advice would be helpful since at this rate I would have to have
all my files have different names and thus directory structure is worthless.
Thanks in advance.
bart
-
Re: Inheritance and Namespaces
Hi Bart,
Yes, this behavior is wrong and we've fixed it in our recent builds after
Beta 2. To workaround this in Beta 2, you can create a new Web Form with a
different name, then close any open designers for the file, and rename the
file in the Solution Explorer. This will rename the ASPX and code-behind VB
files, but it will leave the class name alone. The Web Form class name
shouldn't matter, since it's only referenced from the Page directive in the
ASPX file. Sorry for the inconvenience.
-Rob
"Bart Ross" <bross@pivotpointsw.com> wrote in message
news:3b4df6da@news.devx.com...
> Hi,
>
> I am trying to make some head way into the dotnet stuff and I am
> experiencing something that is quite annoying.
>
> I am use to creating web applications with multiple folders and in each of
> those creating an index.asp page. However, when I try and add a web form
> (index.aspx) in directory B I receive the following error saying:
> class 'index' and class 'index' (defined in ..\directory A\index.vb)
> conflict in namespace "PROJECT NAME".
>
> Has anyone else experienced this?
> Is there a way to not default the inheritance in page creation process?
> Any other advice would be helpful since at this rate I would have to have
> all my files have different names and thus directory structure is
worthless.
>
> Thanks in advance.
> bart
>
>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks