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
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