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 August 14th, 2010, 01:53 PM
Authorized User
 
Join Date: Aug 2010
Posts: 19
Thanks: 6
Thanked 0 Times in 0 Posts
Default Chapter 10 - UpdatePanel question

Hi, this is my first time posting here. I first want to say what an invaluable resource your book has been for me, Imar. I couldn't have asked for a more clear, concise, and understandable book.

Anyway, here is my question.

Along with the sample website I'm creating from the book, I'm also working on my own site as I read through the chapters. It uses a master page and contains a header, a menu, a sidebar and a main content area. When any link in the header, menu or sidebar is clicked, the site posts back and the main content area changes (header/menu/sidebar look the same due to the master page). Ok. What I want to be able to do is apply an updatepanel so that when a user clicks a link, ONLY the main content area posts back and refreshes. In Chapter 10 you explain how the updatepanel can be refreshed with controls encased inside of it, or by use of triggers from other controls. But is it possible to trigger the updatepanel with links (such as clicking on the banner image in the header) rather than server controls?

Thanks for your time,

-Chris
 
Old August 15th, 2010, 04:25 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 Chris,

Yes, you can use LinkButtons for that. They render as standard links, but use JavaScript to do a postback.

However, it depends on where you want to use them. If you request a new page (e.g. when you go from Home to Reviews) you can't use UpdatePanels. Check out my last post in this thread for more details: Full reload of page

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!
The Following User Says Thank You to Imar For This Useful Post:
caiman (August 15th, 2010)
 
Old August 15th, 2010, 12:05 PM
Authorized User
 
Join Date: Aug 2010
Posts: 19
Thanks: 6
Thanked 0 Times in 0 Posts
Default

Thank you, that helps me understand. I will explore LinkButtons and see what I can figure out!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Ch. 10: UpdatePanel makes page disappear JohnInPomeroy BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 3 April 1st, 2010 04:20 PM
CH 10 Updatepanel - Design view RobertVL ASP.NET 3.5 Basics 2 July 6th, 2008 06:13 AM
Another chapter 10 question. czambran BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3 4 April 3rd, 2005 09:12 PM
Question on chapter 10 - overriding RobMeade BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003 4 August 12th, 2004 11:56 AM





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