p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Beginning ASP.NET 4 : in C# and VB (http://p2p.wrox.com/forumdisplay.php?f=560)
-   -   Chapter10: Update Panel and Content Template (http://p2p.wrox.com/showthread.php?t=87794)

liveToLearn June 20th, 2012 02:42 PM

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.

Imar June 21st, 2012 01:51 AM

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.



liveToLearn June 21st, 2012 08:01 PM

Thank you!

All times are GMT -4. The time now is 04:32 AM.

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