[Mono-list] Directive Register..
Carlos Cesario
ccesario@isic.com.br
Mon, 05 May 2003 11:28:42 -0300
Hi,
I am making some simple tests with "aspx" and at the moment I am having
error with the directive "Register".. it sees below.
Error.
---------------------
Parser Error
Description: Error parsing a resource required to service this request.
Review your source file and modify it to fix this error.
Error message: Unknown directive: Register
File name: /usr/src/mono/source/xsp/server/test/ascx.aspx Line: 3
Source Error:
<%@ Page language="C#" %>
<%-- we can even override the asp prefix with @ register --%>
<%@ Register TagPrefix="UControl" TagName="Header" Src="header.ascx" %>
<%@ Register TagPrefix="UControl" TagName="Footer" Src="footer.ascx" %>
<html>
<head>
----------------------
Source code
ascx.aspx
--------------------
<%@ Page language="C#" %>
<%-- we can even override the asp prefix with @ register --%>
<%@ Register TagPrefix="UControl" TagName="Header" Src="header.ascx" %>
<%@ Register TagPrefix="UControl" TagName="Footer" Src="footer.ascx" %>
<html>
<head>
<title>Sample example</title>
</head>
<body bgcolor="#FFFFFF">
<UControl:Header runat="server"/>
Test Document
<UControl:Footer runat="server"/>
</body>
</html>
---------------------
header.ascx
------------------
This is Header <br>
------------------
footer.ascx
------------------
This is footer <br>
------------------
-------------------------------------------
This files working perfect in windows + VS.NET
Somebody can help me?
grateful!
Carlos Cesario