View Single Post
  #4 (permalink)  
Old July 25th, 2007, 04:50 PM
khosravi khosravi is offline
Wrox Author
 
Join Date: Aug 2006
Location: , , .
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,
The book is technically correct and accurate. User controls can be used for partitioning logic across your pages. For example, you can have a user control that contains the beginning tag of a <tr> element and another user control that contains the ending tag of the same </tr> element. However, such partitioning should not be applied to html, body, and form containing elements. In other words, user controls should not include html, body, and form elements because a user control as a reusable piece of code is merged into pages that normally contain the html, body, and form elements.

Cheers!
Shahram

-----------------------
Shahram Khosravi, Ph.D.
Author of Professional ASP.NET 2.0 Server Control and Component Development