Partial page

Agile IT asked on June 8, 2017 12:08

I need to search to implement search using javascript. so I created page with template setting to None.

But when i call this page using JS, all the css/js also downlaods from root.

How can we create a page which will return only html of that page.

Recent Answers


Anton Grekhovodov answered on June 8, 2017 12:34 (last edited on June 8, 2017 12:35)

Try to create ASPX + Portal page template, it won't inherit any settings from parent templates: Image Text

0 votesVote for this answer Mark as a Correct answer

Trevor Fayas answered on June 8, 2017 16:15

Dilip, can you clarify a little bit more on what you are trying to do?

If you are trying to implement an AJAX based search (where it goes to a page that then gets the resulting search results in an AJAX call), i would recommend you look at the Webpart to API Converter on the Marketplace, with it you can create your HTML in a repeater and the Webpart to API Converter will clear everything except that content.

I use it for getting HTML details through an AJAX call on some of my tools.

0 votesVote for this answer Mark as a Correct answer

Roman Hutnyk answered on June 8, 2017 16:25

Create another master page template and use it for the page you need. Master page template never inherits it's parents.

0 votesVote for this answer Mark as a Correct answer

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