Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4 > BOOK: Beginning ASP.NET 4 : in C# and VB
BOOK: Beginning ASP.NET 4 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4: in C# and VB by Imar Spaanjaars; ISBN: 9780470502211
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4 : in C# and VB 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 June 20th, 2012, 02:42 PM
Registered User
Join Date: May 2012
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter10: Update Panel and Content Template


I was just wondering why when the Update Panel control is dragged from the Tool Box, it does not include the code for the ContentTemplate with it. On the other hand, the ContentTemplate is added if we do it manually as described in the book, page335. Why this happens or is it just the way it is, and does the update panel has to have a ContentTemplate code?

Thank you.
Old June 21st, 2012, 01:51 AM
Imar's Avatar
Wrox Author
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts

Hi there,

I guess this is just the way it is. The controls in the Toolbox only add the outer tags and don't include any nested required tags. Since you need a ContentTemplate for the UpdatePanel, adding that by default when dragging a control from the toolbox would have made a lot of sense.

You can remove the existing one and replace it with your own by dragging a piece of markup into the toolbox.


Imar Spaanjaars
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 June 21st, 2012, 08:01 PM
Registered User
Join Date: May 2012
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Thumbs up

Thank you!

Similar Threads
Thread Thread Starter Forum Replies Last Post
update panel jack_hilary BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 5 December 1st, 2009 04:33 PM
Gridview Update not firing in Update Panel akshay144 Ajax 1 August 13th, 2009 10:20 AM
Dropdown in update panel deb1980 ASP.NET 2.0 Professional 0 June 16th, 2009 06:42 AM
Javascript Update Panel. blink18jew ASP.NET 1.0 and 1.1 Basics 0 June 30th, 2007 06:46 AM

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