BC30456 error when using <%@ Page Src="..." %>

H

Henri

Hi,

I've built a custom control named Tree in MyNameSpace.Tree compiled into
dans MyNameSpace.Tree.dll
I've then designed a page index.asp with its code in index.aspx.vb (class
PageIndex).
This page registrers my Tree control:
<%@ Register TagPrefix="km" NameSpace="MyNameSpace" Assembly="tree.dll" %>

Everything runs well when I compile aspx.vb myself without specifying any
Src property in the page:
<%@ Page ... Inherits="PageIndex" %>

But if I specify the Src property so that ASP.NET compiles the codebehind
itself
<%@ Page ... Inherits="PageIndex" Src="/Source/index.aspx.vb"%>
I get :

Compiler error message: BC30456: 'myTree' is not a member of
'ASP.index_aspx'.

Error source:

Line 7 : </head>
Line 8 : <body>
Line 9 : <form runat="server">
Line 10 : <km:tree runat="server" id="myTree" width="200px" />

I don't understand why...
Can you help me?

Henri

PS: I don't use VS.NET (that's why there's no CodeBehind property) but
WebMatrix
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,153
Latest member
NamKaufman
Top