Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I am using MVC to create SharePoint Provider Hosted App. How to create navigation menu in Share Point Application, for example if i just create hyperlink it doesn't take SPHostUrl and other query string parameters to next page.

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

I'm not seeing how you insert the hyperlink, but in MVC you need to set the needed querystring variables explicitly for a hyperlink. One thing you might do is persist the SPHostUrl into a session or cookie variable, and use that value as a source for the SharePoint token for each next request after the first one, when you do not want to put it on the querystring for each request.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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