爱莎居

.Net

导航

When we need to inherit from WSS WebPart class?

We all know the WSS 3.0 fully support the webpart whether derived from WSS WebPart class or ASP.NET 2.0 WebPart class. So, the question is when we need to use the WSS WebPart class as parent class.

The WSS WebPart class provide exclusively functionalities as below:
  • Cross page connections.
  • Connections between web parts that are outside of a web part zone
  • Client-side connections (Web Part Page Services Component)
  • A data caching infrastructures that allows caching to the content database
If you need the above functionalities, you should have your web part inherits from WSS WebPart class. otherwise, inherting from ASP.NET 2.0 Web Part class is a better choice

posted on 2008-06-05 10:22  焰凌  阅读(330)  评论(0编辑  收藏  举报