3

In SP2013 I have several page layouts, which have the same html/controls code in each (in the .aspx file). Is there a way I can just do an include from another file?

  • 3
    Don't you reference a master page from the page layout template? – Jeff Freeman Aug 18 '16 at 15:23
0

iframe or web part, or just copy the code from each aspx file. You could include it in a javascript file and then just refer to the file from within the aspx pages.

| improve this answer | |
0

It's an asp.net simple solution. You need to create User Control (.ascx). And in yout aspx page you refer to your User control(s).

There is a lot of documentation about user control ;)

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.