More in this section
Forums / Developing with Sitefinity / Extending Blogs List control (ContentViewItemList.ascx)

Extending Blogs List control (ContentViewItemList.ascx)

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 0 answered
  1. Duncan Evans
    Duncan Evans avatar
    122 posts
    Registered:
    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
    Registered:
    12 Sep 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