Advantages of using sublayouts:
- Sublayouts support a superset of the features that XSL renderings, web controls, and user controls support.
- Sublayouts provide markup templates with code-behind to separate logic from presentation.
- Sublayouts can access all Sitecore APIs and any other APIs available to the ASP.NET worker process.
- Sublayouts support placeholders, allowing dynamic nesting of presentation components to any level.
- Sublayouts support debugging with the Visual Studio debugger.
- Sublayouts support compile-time error detection.
- If it helps in the migration of existing code or the integration of third-party components, you can easily implement a sublayout as a wrapper for a single web control.
No comments:
Post a Comment