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 September 25th, 2009, 03:25 PM
Authorized User
 
Join Date: Mar 2009
Posts: 64
Thanks: 0
Thanked 1 Time in 1 Post
Default Location for UpdateProgress

Imar,

I followed your book example (p. 328 - 332) for an UpdatePanel with an UpdateProgress control. That worked fine.

You make a specific point of placing the UpdateProgress control outside of the UpdatePanel.

In implementing the same technique on a page I am designing the UpdateProgress did not work until I included it within the UpdatePanel. The button that started the process was originally outside the UpdatePanel, but I did not want the UpdateProgress gif to display at the bottom of the very long page. I wanted it in a table that was towards the top of the page, and being used to organize some of the layout. The button that started the routine for which the user has to wait is in the table cell immediately to the left of the UpdateProgress control. Thus the "experiment" in including the UpdateProgress control within the UpdatePanel.

Do you see anything wrong with that, as in, I will be sorry after deployment kind of wrong?

On the general subject, could you say a few words comparing and contrasting JavaScript and AJAX. It appears that AJAX is what I want, and you spend more time on that in your introductory book than on JavaScript. Do I need to know JavaScript well, or just in passing, in order to apply AJAX?

Thanks.

Thomas
 
Old September 25th, 2009, 05:27 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi Thomas,

If it works, it works.... ;-)

The reason I advised you to place the UpdateProgress outside the UpdatePanel is that it makes it easier to reuse the same progress for multiple panels. That way, you can have a single UI element that is triggered by different UpdatePanels. In your case, you need the UI closer to (or actually in) the actual panel, which is fine.

Initially, AJAX stood for Asynchronous JavaScript and XML. However, today it doesn't have to by asynchronous, require JavaScript nor has to be based on XML. You could do SVAJ - Synchronous VBScript and JSON ;-) or any other combination. However, for many practical purposes, AJAX comes down to JavaScript. So yes, if you want to dig deeper into AJAX, you certainly need to learn more about JavaScript.

Check out the books section of this site: http://www.wrox.com/WileyCDA/Section/id-105077.html Wrox has a number of excellent books on JavaScript and on AJAX.

Hope this helps. If not, please let me know.

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!





Similar Threads
Thread Thread Starter Forum Replies Last Post
save in location Archangel Word VBA 1 July 13th, 2007 04:09 PM
window.location crmpicco Javascript 1 July 7th, 2005 08:55 AM
One Location to Many Locations sudipkumar Biztalk 0 April 15th, 2005 08:13 AM
Getting the location of a Record creative_eye ADO.NET 2 May 12th, 2004 09:46 AM
Database Location egerdj BOOK: Beginning ASP 3.0 1 February 20th, 2004 04:27 AM





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