Hello guys...
I had the exact same problem as posted in this thread:
DetailsView Data Control behaviour
I'm using VS2010 professional on WIN7.
On page 443, by the end of step 5, I dont get the same markup code for the DetailsView as the book states, rather I get the same markup code that Matt posted in the thread linked above, which is:
Code:
<asp:DetailsView ID="DetailsView1" runat="server" DataSourceID="SqlDataSource1"
DefaultMode="Insert" Height="50px" Width="125px">
<Fields>
<asp:CommandField ShowInsertButton="True" />
</Fields>
</asp:DetailsView>
One of Imar's tips in the thread linked above was to click "refresh schema" on the smart task panel of DetailsView in the designer.
Well, I tried that, and only after doing so, I got the same code as in the book except the line:
Code:
<asp:CommandField ShowInsertButton="True" />
,
that was removed, and after repeating step 4 again, the code I got was 100% the same as the code in the book.
Is that the way it should be? is it a known problem?
10x for any answer...
