Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Search | Today's Posts | Mark Forums Read
BOOK: Beginning ASP.NET 4 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4: in C# and VB by Imar Spaanjaars; ISBN: 9780470502211
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4 : in C# and VB section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 31st, 2010, 08:20 PM
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:
   <asp:DetailsView ID="DetailsView1" runat="server" DataSourceID="SqlDataSource1" 
    DefaultMode="Insert" Height="50px" Width="125px">
      <asp:CommandField ShowInsertButton="True" />
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:
 <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
  #2 (permalink)  
Old November 1st, 2010, 03:17 AM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts

Hi there,
Is that the way it should be? is it a known problem?
No, it shouldn't be like this. It should work fine the first time you set up the control. And yes, it's more or less a known problem. I've reported similar issues to Microsoft, but never found a good repro scenario that worked every time.

Glad to hear you find a solution. I back linked to this post from the one you linked to in case others run into it as well.

Thansk and Cheers,

Imar Spaanjaars
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
Reply With Quote
The Following 2 Users Say Thank You to Imar For This Useful Post:
btcomp (April 23rd, 2011), stormage (November 1st, 2010)

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
DetailsView Data Control behaviour mat41 BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 6 November 1st, 2010 03:18 AM
Events for Control Inside DetailsView AspNetGuy ASP.NET 3.5 Basics 3 June 6th, 2008 02:09 PM
DetailsView Control on ManageCategories.aspx pinch BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 2 October 6th, 2007 09:15 PM
DetailsView Control Showkkath ASP.NET 1.x and 2.0 Application Design 2 August 21st, 2006 07:49 AM
Problem with updating the detailsview control rakesh225 ASP.NET 2.0 Professional 1 August 2nd, 2006 10:45 AM

All times are GMT -4. The time now is 09:07 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.