Dynamically add a cms:BasicRepeater from code behind

Pantelhs Saoylos asked on October 24, 2019 09:05

Hello everyone, i would like to know if it is possible to add/generate a cms:BasicRepeater to display some content after some logic from the .ascx.cs file, and set it's transformation and general option accordingly. Thanks in advance!

Recent Answers


Peter Mogilnitski answered on October 29, 2019 12:56

Put repeater in mark up file - .ascx And you cant put some loggic if you need in .ascx.cs

0 votesVote for this answer Mark as a Correct answer

Pantelhs Saoylos answered on October 29, 2019 13:07

Well in my case i need to dynamically generate the repeater from code behind, not to edit the properties of an already assigned one. The best case scenario would be to generate it like "new HtmlGenericControl("div")" where in place of div to generate a BasicRepeater

0 votesVote for this answer Mark as a Correct answer

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