“~/Views/Home/Text.aspx”处的视图必须派生自 ViewPage、ViewPage<TModel>、ViewUserControl 或 ViewUserControl<TModel>。
2013-12-23 15:46
148 查看
在MVC架构中使用aspx页面,需要在Text.aspx中开头加入如下代码:
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<dynamic>" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> </head> <body>
相关文章推荐
- “~/Views/Login/Login.aspx”处的视图必须派生自 ViewPage、ViewPage<TModel>、ViewUserControl 或 ViewUserControl<TModel>。
- MVC区域 视图必须派生自 WebViewPage 或 WebViewPage<TModel>
- MVC区域 视图必须派生自 WebViewPage 或 WebViewPage<TModel>
- The view at ‘~/Views/Home/Index.aspx’ must derive from ViewPage, ViewPage, ViewUserControl, or ViewUserControl.
- MVC区域 视图必须派生自 WebViewPage 或 WebViewPage<TModel>
- Index.cshtml”处的视图必须派生自 WebViewPage 或 WebViewPage<TModel>。
- 视图必须派生自 WebViewPage 或 WebViewPage<TModel>
- Getting the error “The view at '~/Views/Page/home.aspx' must derive from ViewPage, ViewPage<TViewDat
- <TextView>标签中必须加android:layout_height和android:layout_width属性
- ASP.NET MVC - The view must derive from WebViewPage, or WebViewPage<TModel>
- 具有键“XXX”的 ViewData 项属于类型“System.Int32”,但它必须属于类型“IEnumerable<SelectListItem>
- <ScrollView> 滚动视图的简单功能和用法
- <%@page contentType="text/html;charset=gbk"%>与<meta http-equiv="Content-Type" content="text/html; ch
- React Native学习笔记(二)--index.android.js 内容和ReactNative组件(<Text>、AppRegistry、View、StyleSheet)及Component
- eclipse提示:This tag and its children can be replaced by one <TextView/> and a compound drawable
- <TextView>实现一个有趣的小效果
- User <anonymous> does not have permission on weblogic.management.adminhome to perform lookup operati
- 人间风景开发日志 – 2 <DataModel,ViewModel>
- android定位已获取经纬度,上传google解析后textview不显示,基础问题,求大神解答~~>_<`
- Android自动识别<a>标签的自定义TextView(可自定义点击事件)