Wrox Programmer Forums
|
BOOK: Professional ASP.NET 3.5 : in C# and VB ISBN: 978-0-470-18757-9
This is the forum to discuss the Wrox book Professional ASP.NET 3.5: In C# and VB by Bill Evjen, Scott Hanselman, Devin Rader; ISBN: 9780470187579
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional ASP.NET 3.5 : in C# and VB ISBN: 978-0-470-18757-9 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 October 14th, 2008, 11:26 PM
Registered User
 
Join Date: Oct 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default AJAX Listing 19-4 not working!

I have added the update panel and scriptmanager as described in listing 19-4. It is not working! That is when you hit button 2, you still get the full postback, not the listing 19-7. I even downloaded the sample code (in C#). Same result. Is there some sort of security setting or something else I need to do to get AJAX working?

As a side note, I'm not really sure it's a good example. The jist of it seems to be, "wow, the first edit box does not change when you hit the second button that is inside the updatepanel". But that would be the case if there was not such thing as AJAX. There are two seperate button handlers!

Thanks.
 
Old October 14th, 2008, 11:55 PM
Registered User
 
Join Date: Oct 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

To add to the last post.... Perhaps I'm missing something here.
How was the output in listing 19-7 generated? Simply a view source?

It does appear that button2 behaves differently (result returns faster), but it also appears that if you look at the event Page_Load, it's hit everytime too. What's going on?

Thanks.






Similar Threads
Thread Thread Starter Forum Replies Last Post
ajax functionality not working. shegxzyl BOOK: PHP and MySQL: Create-Modify-Reuse ISBN: 978-0-470-19242-9 2 March 31st, 2010 10:01 PM
DataReader error on Listing 12-19 cJeffreywang BOOK: Professional ASP.NET 2.0 and Special Edition; ISBN: 978-0-7645-7610-2; ISBN: 978-0-470-04178-9 0 January 3rd, 2008 12:36 PM
Ch 19 not working either... resolutions BOOK: Beginning JavaServer Pages 6 May 17th, 2007 04:36 AM
help with working AJAX? Hannibal Ajax 1 January 3rd, 2007 01:39 PM
Listing 6-19 Asp.Net BOOK: Professional ASP.NET 2.0 and Special Edition; ISBN: 978-0-7645-7610-2; ISBN: 978-0-470-04178-9 1 October 2nd, 2006 08:15 AM





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