Add Rows Layout to ASPX.Master

brandon rogers asked on July 16, 2018 14:52

How do you add the row layout webpart to an aspx page?

I don't see any documentation that shows how to add the rows layout webpart to the aspx webpart. The only documentation is how to develop my own which I don't need.

Our master page is an aspx.master and a I am putting a HierarchicalViewer per row and will allow users to add widgets to the corresponding row.

Thank you

We are using the ASPX + portal set up.

My other post related to this

Correct Answer

Brenden Kehren answered on July 16, 2018 15:13

You usually don't add a webpart to an aspx page template. You add the underlying control and any logic to the page. Webparts are specifically made to work with Portal and you will lose any ability to set properties via the UI if you add the webpart to the aspx page.

To specifically answer your question, you can simply add a reference to it on your aspx page just as you would with a regular ascx control and you'll have access to all the properties and the control in the code behind.

1 votesVote for this answer Unmark Correct answer

Recent Answers


brandon rogers answered on July 16, 2018 15:27

Got it, so in order to accomplish my task of having our users adding widgets on their own we will need to convert the aspx.master to a portal master page?

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on July 16, 2018 15:36

You can add webpart zones to your aspx template. Then when you view the page you can simply configure that webpart zone to be a widget zone.

1 votesVote for this answer Mark as a Correct answer

brandon rogers answered on July 17, 2018 21:37

Got everything working based on your advice, however after configuring the web part zones and adding web parts on the portal. The web parts that I added on the portal are only appearing for that single page not for the rest of the nav.

Is there a way to fix this? Thanks!

0 votesVote for this answer Mark as a Correct answer

brandon rogers answered on July 18, 2018 16:08

Per the documentation there is no inheritance for portal + aspx. We are just going to have to hardcode the webpart. Thanks much!

0 votesVote for this answer Mark as a Correct answer

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