[InvalidOperationException: 无法确定 MetaTable。无法为数据源“SqlDataSource1”确定 MetaTable,且无法从所请求的 URL 推断它。确保表映射到数据源,或数据源配置了有效的文本类型和表名称,或此请求是已注册的 DynamicDataRoute 的一部分。] System.Web.DynamicData.Util.MetaTableHelper.GetTableWithFullFallback(IDataSource dataSource, HttpContextBase context) +324540 System.Web.DynamicData.Util.MetaTableHelper.FindMetaTable(Control current, HttpContextBase context) +186 System.Web.DynamicData.DynamicField.get_Column() +117 System.Web.DynamicData.DynamicField.get_SortExpression() +72 System.Web.UI.WebControls.DataControlField.InitializeCell(DataControlFieldCell cell, DataControlCellType cellType, DataControlRowState rowState, Int32 rowIndex) +72 System.Web.DynamicData.DynamicField.InitializeCell(DataControlFieldCell cell, DataControlCellType cellType, DataControlRowState rowState, Int32 rowIndex) +52 System.Web.UI.WebControls.GridView.InitializeRow(GridViewRow row, DataControlField[] fields) +623 System.Web.UI.WebControls.GridView.CreateRow(Int32 rowIndex, Int32 dataSourceIndex, DataControlRowType rowType, DataControlRowState rowState, Boolean dataBind, Object dataItem, DataControlField[] fields, TableRowCollection rows, PagedDataSource pagedDataSource) +111 System.Web.UI.WebControls.GridView.CreateChildControls(IEnumerable dataSource, Boolean dataBinding) +2597 System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) +95 System.Web.UI.WebControls.GridView.PerformDataBinding(IEnumerable data) +19 System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +222 System.Web.UI.WebControls.DataBoundControl.PerformSelect() +313 System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +146 System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls() +192 System.Web.UI.Control.EnsureChildControls() +189 System.Web.UI.Control.PreRenderRecursiveInternal() +60 System.Web.UI.Control.PreRenderRecursiveInternal() +222 System.Web.UI.Control.PreRenderRecursiveInternal() +222 System.Web.UI.Control.PreRenderRecursiveInternal() +222 System.Web.UI.Control.PreRenderRecursiveInternal() +222 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4297 |