p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Professional ASP.NET 2.0 Server Control and Component Development ISBN: 978-0-471-79350-2 (http://p2p.wrox.com/forumdisplay.php?f=275)
-   -   Page Listing 5-9 page 102-103 (http://p2p.wrox.com/showthread.php?t=75249)

lionac July 15th, 2009 12:43 AM

Page Listing 5-9 page 102-103
Dr. Khosravi -
I am wondering about this CreateContainerChildControls method:
is it better to create controls in this method and add them to Controls collection or like you wrote looks that that controls should be declared somewhere else?

Example :
You write :
case ContainerType.PaymentMethodLabel:\
paymentMethodLabel = new Label();
paymentMethodLabel.Width = Unit.Percentage(100)
Did you think:
Label paymentMethodLabel = new Label();
and then :

And if you can explain which option is better and why please.

lionac July 31st, 2009 12:30 AM

Is it anyone check these forums?
Is it anyone check these forums?

All times are GMT -4. The time now is 08:14 AM.

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