Thursday, 9 October 2008

I DoRender or Render, I Do?

When creating webcontrols, you will be able to use the Render() or DoRender() method. Both methods will work and output value from the webcontrol. But in the case of Sitecore webcontrols, when using the Render method, it would bypass important Sitecore pipelines, so it would have a negative result on the implementation. Therefore, always use (override) the DoRender() method if you are creating Sitecore webcontrols...

More to come... (I hope)

No comments: