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 November 24th, 2009, 05:14 PM
bpl bpl is offline
Authorized User
 
Join Date: May 2009
Posts: 21
Thanks: 0
Thanked 1 Time in 1 Post
Default Chapter 12 Displaying and Updating Data

When working with Genres.aspx and Reviews.aspx pages I found, that after wrapping content block inside an Ajax UpdatePanel we are not able to make any GridView changes (Edit Columns link from Smart tag) in Design View - they are not refreshed in Source view and gone after we close the page and open again.
(This problem occurred either I working in separate Design View or Split View mode).
So if after wrapping content block inside an Ajax UpdatePanel we need to make any changes in Gridview, we need to commented out Update Panel with ContentTemplate statements, make required changes in GridView, than uncommented Update panel again.
(May be it is bug in ASP.NET 3.5).
 
Old November 25th, 2009, 03:39 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Yeah, it mmight be a bug. In that case, consider reporting it at http://connect.microsoft.com

But are you sure it's not a code problem somehow? I just tested it on VS 2008 (with Service Pack 1 applied) and I can edit controls inside an UpdatePanel without any problems.

Cheers,

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!
 
Old November 25th, 2009, 10:36 AM
bpl bpl is offline
Authorized User
 
Join Date: May 2009
Posts: 21
Thanks: 0
Thanked 1 Time in 1 Post
Default

I also using VS 2008 (with Service Pack 1 applied) and have this problem. Might be, another details of my .NET environment can influence on this? For example, I have in my VS 2008 the latest version Ajax Control Toolkit installed, Silvelight 3 and Microsoft Expression Studio 3.
 
Old November 25th, 2009, 11:21 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Everything is possible with software.... ;-)

What happens if you create a brand new web site with just an UpdatePanel and a GridView?

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!
 
Old November 25th, 2009, 02:32 PM
bpl bpl is offline
Authorized User
 
Join Date: May 2009
Posts: 21
Thanks: 0
Thanked 1 Time in 1 Post
Default

Imar, according to your advice I created brand new website with just an UpdatePanel and a GridView in VS 2008. I got the same provblem after wrapping GridView into UpdatePanel.
On the same PC I also have VS 2005 installed. For testing I created similar project in VS 2005 with just an UpdatePanel and a GridView and did not get any problem when changing GridView wrapped in UpdatePanel.
So some problem exists with VS 2008 environment.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 12: last try it out, Data is not being updated in the database jack_hilary BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 7 November 30th, 2009 04:01 PM
Updating data (Chapter 12 p388) SouthendSupporter BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 3 July 3rd, 2009 10:03 AM
Updating data (Chapter 12 p388) SouthendSupporter BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 0 July 3rd, 2009 09:03 AM
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
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.