CMS:Repeater

uzair Ahmed asked on November 8, 2018 14:33

Image Text

Hi Team, i have problem with my code in kentico can you help me to get out of it, i have share a screenshot please see that. actullay the problem is.. i am using CMSRepeater and it have an ID="ResourcesRepeater" as you can see in screenshot( https://www.screencast.com/t/91y4HoQI6N ) but i am unable to use ResourcesRepeater behid the code in cs file. am i doing any mistake ?

Recent Answers


Rui Wang answered on November 8, 2018 15:08

What is the cms:CMSPagePlaceHolder? I can't find that in my solution.

0 votesVote for this answer Mark as a Correct answer

David te Kloese answered on November 8, 2018 15:42

Isn't that the Web Part you use on your Masterpage which will be filled with content from lower pages that inherit from it.

What version of Kentico are you using? Are you trying to use ASPX + model as in this example https://devnet.kentico.com/docs/7_0/tutorial_aspx/index.html?adding_portal_engine_functionality_to_aspx.htm

Note that this is Kentico 7 and we're almost in Kentico 12.

0 votesVote for this answer Mark as a Correct answer

Rui Wang answered on November 8, 2018 15:56 (last edited on November 8, 2018 16:06)

Thanks David. I found it in K11 as well now under mix-mode template (https://docs.kentico.com/k11/developing-websites/developing-websites-using-aspx-templates/adding-portal-engine-functionality-to-aspx-page-templates). It's not prompt automatically in VS.

@uzair, you cannot access the control from code behind if the control is placed inside the CMSPAgePlaceholder. Move it outside of the placeholder.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.