Certkiller.comhasemployedyouasasystemadministrat
ThefileislinkedtoaLinqDataSourceDataSourcenamedLinqDataSource1.LinqDataSource1containsaprimarykeynamedTestMovieID.TheapplicationalsocontainsaDetailsViewcontrolthatisnamedCKDetailsView.ThecodebelowisincludedintheMovieReviews.aspxfile.(Thelinenumbersisincludedforreferencepurposes)
01<asp:DetailsViewID="DView1"runat="server"DataSourceID="LinqDS1"0304/>
05<Fields>
06<asp:BoundFieldDataField="TestID"HeaderText="No"InsertVisible="False"
08ReadOnly="True"SortExpression="TestID"/>
09<asp:BoundFieldDataField="Name"HeaderText="Name"
10SortExpression="Name"/>
11<asp:BoundFieldDataField="Cat"HeaderText="Category"SortExpression="Cat"/>
13<asp:CommandFieldShowDeleteButton="false"ShowEditButton="True"
14.ShowInsertButton="True"/>
15</Fields>
16</asp:DetailsView>
AllCertkillerclientsmakesuseofDView1.Toensureproductivityyouneedtomakesurethattheyareabletoinsertandupdatecontentinthecontrol.ItisvitalthatyouensurethepreventionofduplivcationofthelinkbuttoncontrolsfortheEditandNewoperations.Youthusneedtodeterminetheappropriatecodefragmentyouneedtoinsertatline3.
Whatshouldyoudo?()