我使用ASP.NET MVC 2 frameworkthat不幸的是需要几页上的Web表单工作(为需要视图状态ReportViewer控件C#编写的一个网站。如何在ASP.NET MVC应用程序中使用ASP.NET页面?
我已经创建了一个名为Reports
文件夹,将其转换到Web Application
并添加了一个页面,叫ReportViewer.aspx
的文件夹(正确添加aspx.cs文件和aspx.designer文件系统)。我还创建了一个名为BasePage.cs
类从System.Web.UI.Page
继承,使我ReportViewer.aspx.cs
继承它。
Wh恩我尝试浏览这个页面,我得到以下错误:
Parser Error Message: Could not load type
AzureWatch.ControlPanel.Web.Reports.ReportViewer
.Source Error:
Line 1:
<%@ Page Language="C#"
AutoEventWireup="true"
CodeBehind="ReportViewer.aspx.cs"
Inherits="AzureWatch.ControlPanel.Web.Reports.ReportViewer"
如何获得ASP.NET aspx页面在ASP.NET MVC网站正确显示出来?
是否为“报告”Web应用程序创建了单独的web.config文件? – ShahidAzim 2011-01-30 17:26:12