Hi,
I tried out the Try It Out - A Simple EntityDataSource Application (on page 518 to 522), got stuck on step 6 to configure the entity data source, as mentioned in the Note to step 6, I get an error about incorrect metadata, tried the steps recommended in the note in vain too. May I know how could I overcome this problem? thanks a lot in advance. the following is the code:
<%@ Page Title="Create New Photo Album" Language="
VB" MasterPageFile="~/MasterPages/Frontend.master" AutoEventWireup="false" CodeFile="NewPhotoAlbum.aspx.
vb" Inherits="_NewPhotoAlbum" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cpMainContent" Runat="Server">
<asp:DetailsView ID="DetailsView1" runat="server" DataSourceID="EntityDataSource1" Height="50px" Width="125px" AllowPaging="True">
<Fields>
<asp:CommandField ShowInsertButton="True" />
</Fields>
</asp:DetailsView>
<asp:EntityDataSource ID="EntityDataSource1" runat="server" ConnectionString="name=PlanetWroxEntities" DefaultContainerName="PlanetWroxEntities" EntitySetName="PhotoAlbums" OnInserted="EntityDataSource1_Inserted">
</asp:EntityDataSource>
</asp:Content>