View Single Post
  #1 (permalink)  
Old October 31st, 2010, 08:20 PM
stormage stormage is offline
Authorized User
Points: 77, Level: 1
Points: 77, Level: 1 Points: 77, Level: 1 Points: 77, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2010
Posts: 15
Thanks: 8
Thanked 0 Times in 0 Posts
Smile DetailsView control

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...
Reply With Quote