Try Now
More in this section

Forums / Developing with Sitefinity / Extending Blogs List control (ContentViewItemList.ascx)

Extending Blogs List control (ContentViewItemList.ascx)

2 posts, 0 answered
  1. Duncan Evans
    Duncan Evans avatar
    122 posts
    07 Jul 2009
    01 Apr 2011
    Link to this post
    I have external templates installed... I wish to add a new <asp:Literal> control to ...Sitefinity\ControlTemplates\Blogs\ContentViewItemList.ascx

    Via code behind i wish to populate this new <asp:Literal> control...

    Could someone please show me where to add this code? It is a simple modification and i can seem to find any information on how to run custom code behind for Sitefinity built in controls.

    Please help..

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    25 Apr 2017
    05 Apr 2011
    Link to this post
    Hello Duncan,

    Create a code behind of the ascx and from there you can access the controls in the control template. If you need to use some control events you can subscribe for them inside Page_Load. Note that the ascx file you use is just a template of the control content view control.

    All the best,
    Ivan Dimitrov
    the Telerik team

2 posts, 0 answered