HTML for a widget in Code Behind

Jaison Peter asked on May 30, 2016 09:18

Hi ,

Is there any code , that i can write in CMS code behind file to return the entire HTML of a widget.

I know there is a way to parse the home.aspx and filter the particual widget/webpart, that approach is not required. Is there any CMS libraries are available to get the html of a single widget/webpart or any other approaches to do this?

Regards, Jaison

Recent Answers

Juraj Ondrus answered on May 30, 2016 13:08

Hi Jaison,
Each web part should have the RenderedHTML property in which is the HTML code that is rendered. So, you can access its value and parse it according your needs.

1 votesVote for this answer Mark as a Correct answer

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