The Model-View-Controller (MVC) architectural pattern separates an application into three main components: the model, the view, and the controller.

learn more… | top users | synonyms

1
vote
1answer
353 views

Sharepoint 365 MVC 4 with Azure Database

I've created an autohosted MVC 4 app to embed into a Sharepoint 365 account. I have followed the tutorial here: http://msdn.microsoft.com/en-us/library/fp179902.aspx to the letter AFAIK. The ...
0
votes
1answer
31 views

Render MVC views inside Sharepoint Provider hosted add-in

I have created Provider hosted add-in with MVC, in that I have some Controllers, Models and Views. I just want to render the Views inside the Sharepoint add-in, so that when I add that particular ...
0
votes
1answer
33 views

Required field validator is not working in jquery

Here is my code Index.cshtml I gave Javascript functions but validations is not working please check this where i did mistake in this code.Thanks in Advance. enter code here<div class="row"> ...
0
votes
1answer
138 views

MVC Autohosted SP2013 online app can not access context

I created a very very simple MVC view to show how many task are remaining in my todo list. Just as many tutorials out there but this time as an MVC auto hosted app. I created the projects and played ...
6
votes
0answers
858 views

Use CSOM with ADFS credentials from Single Sign-On enabled ASP.NET MVC app

I have the following setup: ADFS 3.0, SharePoint 2013 and the custom ASP.NET MVC app. Both SharePoint and MVC app are configured to use Single Sign-On from ADFS, so once user is logged in via ADFS, ...
2
votes
0answers
778 views

How to properly cache, validate, refresh Access Tokens?

I'm a complete newbie to SharePoint Provider-Hosted Solutions and their authentication logic. My App is an ASP MVC Solution. I run many AJAX-Calls from Client-Scripts to my Controller to interact with ...
1
vote
0answers
54 views

Authenticate the user from SharePoint user group by using SP application page with MVC4

I have to authenticate the user from the SharePoint User Group and after the authentication navigate to the MVC Home page. How to integrate the SharePoint application page and MVC Application ? I mean ...
1
vote
0answers
307 views

Access Denied Error with Provider Hosted App (MVC/CSOM)

I built a PHA using MVC a little while ago. I'm receiving "Access denied. You do not have permission to perform this action or access this resource." error when trying to update or even access simple ...
1
vote
0answers
175 views

MVC web api in sharepoint 2013 farm solution

How to consume the MVC web api in SharePoint 2013 farm solution? When I try to consume with httpclient I cannot refer to the assembly WebApiRestService.WebApiClient, it's showing error as not strong ...
0
votes
0answers
15 views

How to integrate SharePoint with existing .NET MVC web site to store digitally signed document?

New users to a .NET MVC web site I support need to sign a user access agreement and upload it to the web site. The current process is cumbersome and verification of user acceptance difficult. I think ...
0
votes
0answers
19 views

String localization in Sharepoint MVC4 app

I have one graph in Javascript in Sharepoint MVC app but not getting how to change the text in graphs based on language. Has anybody experienced this? I did similar in asp.net app and used script ...
0
votes
0answers
71 views

How to create common javascript file for multiple views/pages?

I am working on MVC project where I have saveral number of views. In all the views I have pages like Index.cshtml, AddEdit.cshtml, ViewDetails.cshtml etc. Currently each of one these view has ...
0
votes
0answers
39 views

How do I get 2 lists to show next to each other using MVC web- application?

I know how to get one list from SP in my web-application, but I want to display 2 lists that I have in 2 div's. My problem is that Everything disappears when i run them with the code below: var ...
0
votes
0answers
103 views

Sharepoint - MVC authentication issue

Our main purpose here is security. Right now our MVC application is called inside Sharepoint site in iFrame. And that iFrame is inside Web part. So if you do right click on Sharepoint site you can ...
0
votes
0answers
55 views

Open SharePoint list in MVC provider hosted app

I am having following setup: provider hosted Asp.Net MVC app hosted on-premise. I have created a list instance (simple Tasks list). Is there any way how I can open that list from app? Obviously ...
0
votes
0answers
88 views

Using MasterPage for SharePoint 2013 Provider Hosted Apps

I try to migrate a Farm Solution to a SharePoint 2013 Provider Hosted app via MVC technology. The app will be hosted on IIS. I have a heavy styled custom masterpage that I want to use also for my MVC ...
0
votes
0answers
113 views

Provider Hosted MVC application hosted outside Sharepoint IIS, find current Sharepoint User

I want to host a MVC application outside Sharepoint - 80 IIS website. Everything works just fine, but I can not find the current sharepoint user, because SPContext.Current is null. My entire MVC ...
0
votes
0answers
371 views

SharePoint Provider Hosted App: mixed content issue

We have a provider hosted app that needs the SharePoint javascript and CSS files, so in our MVC view we added the following code: <script ...
0
votes
0answers
567 views

ASP.NET MVC - Get current user logged in from sharepoint

I have an MVC web app that is sitting on a server running SharePoint Foundation and users access it via a link in the SharePoint portal. I require the website to log in automatically for the current ...