Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 4.5.1 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4.5.1: in C# and VB by Imar Spaanjaars; ISBN: 978-1-118-84677-3
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4.5.1 : in C# and VB section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 29th, 2016, 10:01 PM
Authorized User
 
Join Date: Apr 2016
Posts: 11
Thanks: 1
Thanked 0 Times in 0 Posts
Default Ch 12, Try It Out, p434 - Step 9

Hi!
In the PlanetWrox database I'm having an issue adding data to the Review table that I did not have when adding data to the Genre table.

Try It Out - Creating a Relationship between Two Tables.
Using: Windows 7, VS Community 2013, and SQL Server Express 2012

So far, everything up to this point has worked ok.

Step 9 - In the PlanetWrox database, when I enter a new row in the Review table a little red circle with a white exclamation point appears after each field until I tab or click in the next row to add a new row of data. However, the Id, CreateDateTime, and UpdateDateTime columns all remain null.
The little red circle w/white exclamation point remains with the Id column and when I hover over it, displays the message:
"This row was successfully committed to the database.
However, a problem occurred when attempting to retrieve the data back after the commit.
Because of this, the displayed data in this row is read-only.
To fix this problem, please re-run the query."

I click the X, or Ctrl F4, to close the designer, and right-click the Review table and choose Edit Top 200 Rows to display it again. Now the Id column has the correct sequential number, and both the CreateDateTime and UpdateDateTime columns show the correct date/time. I didn't have this issue when entering data for the Genre table.

Should I have to close the designer and rerun the query after entering a row of data in order for the correct information to appear?

Fyi... not sure if it matters but I did not delete the PlanetWroxTemp database.

-Thanks for any help you can provide!
 
Old November 30th, 2016, 08:56 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

There's an Execute / Refresh button on the toolbar. You can click that (or press Ctrl+R) to reload the changes. Then you'll see the data you entered, along with the auto generated IDs.

Hope this helps,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
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!
The Following User Says Thank You to Imar For This Useful Post:
Brian419 (November 30th, 2016)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Ch 6 p 191 step 12/13 404 persists cadtools BOOK: Beginning ASP.NET for Visual Studio 2015 0 February 28th, 2016 09:17 AM
Lesson 12, Step 5: Question about Interface klp1958 BOOK: iPhone and iPad App 24-Hour Trainer 1 January 11th, 2014 04:47 PM
Chapter 12, A step further Tony Hull BOOK: Beginning Microsoft Visual Basic 2010 0 December 29th, 2010 02:10 PM
Question about step 12 on page 94 bryman BOOK: Beginning iPad Application Development 4 December 20th, 2010 03:01 PM





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