 |
BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3
 | This is the forum to discuss the Wrox book Beginning ASP.NET 3.5: In C# and VB by Imar Spaanjaars; ISBN: 9780470187593 |
|
Welcome to the p2p.wrox.com Forums.
You are currently viewing the BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 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
|
|
|
|
|

May 31st, 2010, 01:20 PM
|
|
Authorized User
|
|
Join Date: Dec 2009
Posts: 63
Thanks: 18
Thanked 0 Times in 0 Posts
|
|
Chapter 12, Customizing GridView Columns
Hi,
On page 404 it asks me to click on the Advanced... button to have VWD generate commands for INSERT, UPDATE, and DELETE. However when the dialog box comes up everything is greyed out and not accessible.
I cancelled out and continued, but now on page 406, step 10, I cannot find the label control "ItemTemplate" mentioned. Can you help?
Fred
|
|

May 31st, 2010, 01:21 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Hi Fred,
Did you give your table an ID column that is the primary key and an identity?
Imar
|
|

May 31st, 2010, 01:29 PM
|
|
Authorized User
|
|
Join Date: Dec 2009
Posts: 63
Thanks: 18
Thanked 0 Times in 0 Posts
|
|
Hi Imar,
Thanks for the quick response. In my database (which BTW is MSSQL 2005), in the review table, I have the ID column as the primary key, "Is identity" is YES, identity increment is 1, and identity seed is 1.
Is this what you meant?
Fred
|
|

May 31st, 2010, 01:57 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Yes, that's exactly what I meant. Not having a primary key has so far been the only reason for the items being grayed out.
What happens when you try a different table? Do you get the same behavior? And this might be obvious, but is the table you used to check the column in the same database as the one you're using on page 404?
Imar
|
|
The Following User Says Thank You to Imar For This Useful Post:
|
|
|

May 31st, 2010, 02:10 PM
|
|
Authorized User
|
|
Join Date: Dec 2009
Posts: 63
Thanks: 18
Thanked 0 Times in 0 Posts
|
|
Hi Imar,
You're the man! My bad! I was using the SQL 2005 database, but looked at the express database. The SQL 2005 version had no primary key set. After setting it the option is now available in the Advanced options dialog box.
One thing however, would the above problem prevent me from not having the label control "ItemTemplate" of the Authorized field, as mentioned on page 406 step 10?
Much Thanks,
Fred
|
|

May 31st, 2010, 03:32 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Quote:
|
One thing however, would the above problem prevent me from not having the label control "ItemTemplate" of the Authorized field, as mentioned on page 406 step 10?
|
I don't think so. I just tried it with a new database and a table without a primary key, and converting a field to a Template Field does give me the label inside the ItemTemplate item.
Cheers,
Imar
|
|
The Following User Says Thank You to Imar For This Useful Post:
|
|
|

June 4th, 2010, 03:46 PM
|
|
Authorized User
|
|
Join Date: Dec 2009
Posts: 63
Thanks: 18
Thanked 0 Times in 0 Posts
|
|
Thanks Imar...this section is now working oK.
|
|
 |