0

我创建了 ASP.Net Dynamic Data Linq to Sql Web Application。我将Linq to Sql项添加到项目中并成功配置了数据库表和项目之间的连接。我运行Default.aspx,我看到表名。点击它时,我只能看到数据库表中的项目,没有' t 任何删除、插入、详细信息链接。它的样子是:

http://www.deryanurulus.com/Untitled.png

我更正了 Global.asax.cs 文件中的行,例如:

        DefaultModel.RegisterContext(typeof(DataClasses1DataContext), new ContextConfiguration() { ScaffoldAllTables = true });

我的项目中缺少什么,为什么我看不到更新链接(删除、插入)?谢谢..

4

1 回答 1

0

确保文件 DynamicData/PageTemplates/Details.aspx 中的 LinqDataSource 具有 EnableUpdate = true

于 2011-11-28T22:43:12.570 回答