Wrox Programmer Forums
|
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
 
Old July 3rd, 2009, 09:02 AM
Authorized User
 
Join Date: Jul 2009
Posts: 61
Thanks: 15
Thanked 1 Time in 1 Post
Default Updating data (Chapter 12 p388)

Hi
I am new to web design and programming. I have been asked by a client to build a website for a chamber of commerce - so I am learning very much 'on project' and have been using the chapters in the book as I progress to help me with the various elements.

I have reached the point where i want to enable the editing/creation of events for the Chamber.

I have followed the 'Using gridviewsand SQLControls' section in Chapter 12 but when I drag my Events table to the page I do not see the 'Enable Editing' and 'Enable Deleting' check boxes in the Gridview tasks as shown in fig 12-4

I don't think this is a permissions issue on the database as I can edit/create data in the tables via SQL Server management Studio and the data Explorer in VWD (but not design via data Explorer - I think because it is at a remote site I get "'This feature is not Supported by VWD Express" if I try ).

Any help gladly received.
Geoff
 
Old July 3rd, 2009, 09:09 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

The main reason for these check boxes not to show up is that your data source doesn't support editing, or because the underlying table doesn't have a primary. In the latter case, check your table and make sure at least one column (like the Id column which can be an identity) is the primary key for the table. Right-click the column and choose Set Primary Key if that isn't the case.

To edit remote tables, you can download a copy of the free SQL Server Management Studio Express: http://www.microsoft.com/express/sql/default.aspx

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:
SouthendSupporter (July 3rd, 2009)
 
Old July 3rd, 2009, 09:34 AM
Authorized User
 
Join Date: Jul 2009
Posts: 61
Thanks: 15
Thanked 1 Time in 1 Post
Default

Thanks Imar - simple error! I'm learning SQL at the same time as learning ASP and VB!!

Great Book!
__________________
Geoff Baldwin
 
Old July 3rd, 2009, 10:03 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

You're welcome. Good to hear you like the book....

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!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 11: Error while updating user data pherank BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 0 March 16th, 2008 07:03 PM
Generics chapter 12 difficult chapter i found ...? Larryz C# 2005 1 July 4th, 2007 09:40 PM
Errors on Chapter 12 example(12.8) sonnie ASP.NET 2.0 Professional 2 June 7th, 2006 10:55 AM





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