页面指​​令 [英] Page Directive

查看:69
本文介绍了页面指​​令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从ASP.net Unleashed中的第27章创建Chart应用程序。当我去加载我的页面时,我收到以下错误消息:


'/''应用程序中的服务器错误。

------------------------------------------ --------------------------------------


分析器错误

描述:解析为此请求提供服务所需的资源时发生错误。请查看以下特定的解析错误详细信息并相应地修改源文件。


解析器错误消息:指令页面未知。


源错误:


第1行:<%@ Page Language =" VB"调试= QUOT;真" %>

第2行:<%@ Register TagPrefix =" myControl"标签名= QUOT;图表" SRC =" Chart.ascx" %>

第3行:<%@ import Namespace =" System.Data.SqlClient" %GT;


谁能告诉我我可能会忽视什么?非常感谢任何帮助!


谢谢,

基思

I am trying to create the Chart application from Chapter 27 in ASP.net Unleashed. When I go to load my page I receive the following error message:

Server Error in ''/'' Application.
--------------------------------------------------------------------------------

Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: The directive ''Page'' is unknown.

Source Error:

Line 1: <%@ Page Language="VB" Debug="true" %>
Line 2: <%@ Register TagPrefix="myControl" TagName="Chart" Src="Chart.ascx" %>
Line 3: <%@ import Namespace="System.Data.SqlClient" %>


Can anyone tell me what I might be overlooking? Any help is greatly appreciated!

Thanks,
Keith

推荐答案

你文件的扩展名是什么?

ASPX?


George。

" Keith" < KC **** @ hotmail.com>在消息新闻中写道:eD ************** @ TK2MSFTNGP09.phx.gbl ...

我试图在ASP中创建第27章的图表应用程序.net Unleashed。当我去加载我的页面时,我收到以下错误消息:


'/''应用程序中的服务器错误。

------------------------------------------ ------------------------------------


分析器错误

描述:解析服务此请求所需的资源时发生错误。请查看以下特定的解析错误详细信息并相应地修改源文件。


解析器错误消息:指令页面未知。


源错误:


第1行:<%@ Page Language =" VB"调试= QUOT;真" %>

第2行:<%@ Register TagPrefix =" myControl"标签名= QUOT;图表" SRC =" Chart.ascx" %>

第3行:<%@ import Namespace =" System.Data.SqlClient" %GT;


谁能告诉我我可能会忽视什么?非常感谢任何帮助!


谢谢,

基思
What is the extension of your file?
ASPX?

George.
"Keith" <kc****@hotmail.com> wrote in message news:eD**************@TK2MSFTNGP09.phx.gbl...
I am trying to create the Chart application from Chapter 27 in ASP.net Unleashed. When I go to load my page I receive the following error message:

Server Error in ''/'' Application.
------------------------------------------------------------------------------

Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: The directive ''Page'' is unknown.

Source Error:

Line 1: <%@ Page Language="VB" Debug="true" %>
Line 2: <%@ Register TagPrefix="myControl" TagName="Chart" Src="Chart.ascx" %>
Line 3: <%@ import Namespace="System.Data.SqlClient" %>


Can anyone tell me what I might be overlooking? Any help is greatly appreciated!

Thanks,
Keith


是的扩展名是ASPX。我对此很新,但也许这也会有所帮助。我还创建了一个扩展名为.ascx的用户控件,它是.aspx文件中创建的Chart控件的源。


Thx,

Keith

" George Ter-Saakov" <无**** @ hotmail.com>在留言新闻中写道:ee ************** @ TK2MSFTNGP09.phx.gbl ...

您的文件的扩展名是什么?

ASPX?


George。

" Keith" < KC **** @ hotmail.com>在消息新闻中写道:eD ************** @ TK2MSFTNGP09.phx.gbl ...

我试图在ASP中创建第27章的图表应用程序.net Unleashed。当我去加载我的页面时,我收到以下错误消息:


'/''应用程序中的服务器错误。

------------------------------------------ ----------------------------------


分析器错误

描述:解析为此请求提供服务所需的资源时发生错误。请查看以下特定的解析错误详细信息并相应地修改源文件。


解析器错误消息:指令页面未知。


源错误:


第1行:<%@ Page Language =" VB"调试= QUOT;真" %>

第2行:<%@ Register TagPrefix =" myControl"标签名= QUOT;图表" SRC =" Chart.ascx" %>

第3行:<%@ import Namespace =" System.Data.SqlClient" %GT;


谁能告诉我我可能会忽视什么?非常感谢任何帮助!


谢谢,

基思
Yes the extension is ASPX. I am fairly new to this, but maybe this will help as well. I have also created a user control with a .ascx extension which is the source for the Chart control created in the .aspx file.

Thx,
Keith
"George Ter-Saakov" <no****@hotmail.com> wrote in message news:ee**************@TK2MSFTNGP09.phx.gbl...
What is the extension of your file?
ASPX?

George.
"Keith" <kc****@hotmail.com> wrote in message news:eD**************@TK2MSFTNGP09.phx.gbl...
I am trying to create the Chart application from Chapter 27 in ASP.net Unleashed. When I go to load my page I receive the following error message:

Server Error in ''/'' Application.
----------------------------------------------------------------------------

Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: The directive ''Page'' is unknown.

Source Error:

Line 1: <%@ Page Language="VB" Debug="true" %>
Line 2: <%@ Register TagPrefix="myControl" TagName="Chart" Src="Chart.ascx" %>
Line 3: <%@ import Namespace="System.Data.SqlClient" %>


Can anyone tell me what I might be overlooking? Any help is greatly appreciated!

Thanks,
Keith


这篇关于页面指​​令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆