The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [mvc]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
23 views

External Application accessing a Sharepoint Server

I have a specific scenario, wherein I have an application built ASP.net MVC accessing a SharePoint server. Now my SharePoint server has a configuration where there are 2 Web Front End servers and 2 ...
1
vote
1answer
13 views

Reference SharePoint inside a .Net core2.1 project

I have a solution that is targeting .Net Core2.1 Framework. Now inside I want to be able to query sharepoint list items. But I see I can't add Microsoft.SharePoint.dll in the project. I tried changing ...
0
votes
0answers
13 views

Is it possible to integrate MVC to SharePoint 2013? [duplicate]

Here i'm having a MVC solution that completely developed. Can anyone give solution that i want to integrate or convert MVC into SharePoint Solution and deploy in SP 2013. Is it possible to do? Thanks ...
1
vote
0answers
19 views

How make publish by date MVC , sharepiont

I am working in site that publish the content by date so, every Thursday I will compare the date that the content approved to this Thursday date if its the same date (dependent on admin diction to ...
0
votes
1answer
178 views

can't find sp.runtime.js

Trying to use a people picker in a sharepoint online MVC add in but when I try to import the javascript files needed I get "not found" error in the Error List. This is how I try to import the files &...
0
votes
0answers
108 views

401 - Unauthorized: Access is denied due to invalid credentials

I have a simple mvc api which saves a url to SQL and retrieves it. For some people it works just fine, but some of them do not have access. Error: {"readyState":4,"responseText":" Server Error ...
-1
votes
1answer
48 views

how to alert message in sessinStorage

I have a button on my update page. This button redirects and refreshes the page after sending sms I want that; If the user pushes the button and sends sms 1 time, do not press the same button 2 ...
0
votes
2answers
551 views

C# MVC display items from sharepoint list

So...i created a Sharepoint Add-in (C# MVC) to get list information and create/update items. I've done the creating/updating in the past, not gonna tackle that now. My problem here is displaying the ...
2
votes
1answer
38 views

How to make SharePoint support MVC4 website

environment: SharePoint 2016 Windows Server 2016 VS 2017 a Mvc4 app (.net 4.6) a junior programmer aim Let my MVC4 app be published to SharePoint like the SharePoint project,enabling it eo be ...
1
vote
0answers
286 views

Reading Excel Column from SharePoint online

First off I am new to SharePoint Online. (or any form of SharePoint) I have a Excel Document in the documents section of the SharePoint website that was shared with me. I am trying to access certain ...
0
votes
1answer
30 views

SP item list join SQL item table in MVC ASP.NET

I'm new in MVC ASP.NET web app develop, I created an MVC WebApp hosted in AZURE App Service that CRUD into my SQL Azure Database. I used Visual Studio 2017 to do it, and it works great, it was ...
0
votes
1answer
385 views

Sharepoint online list in an MVC application

I'm trying to build an MVC ASP.NET appthat read in my sharepoint online a list I included in MVC the Azure Active directory login, but I don't understand how to pass the credential to sharepoint site. ...
3
votes
0answers
169 views

SharePoint CSOM crashes IIS App pool

What I’m trying to achieve here is a MVC website that gets some info from SharePoint. I did that on VS 2017, works perfectly. This is the code: var ctx = authManager....
0
votes
1answer
82 views

Using Razor in Sharepoint Online MVC provider hosted apps? [closed]

Mostly for the purpose of making good looking charts. Is that possible? If so, could someone provide some insight into how to do that?
0
votes
1answer
41 views

Adding item to SharePoint list programatically not triggering workflow or populating people control correctly

I am adding an item to a sharepoint list in an ASP.Net MVC app using Microsoft.SharePoint.Client. One of the columns is a people picker. The people picker is used to send and email via a SP 2013 ...
0
votes
1answer
304 views

Get SPContext in Web Method of Provider hosted app of MVC Forms

I am developing a Provider hosted app of MVC type for SharePoint Online. I am trying to get the SharePoint Context in a Web Method in provider Hosted app of Type MVC application. I am able to get ...
0
votes
1answer
412 views

How to add SharePoint Chrome Control to provider-hosted add-in based on MVC 5?

I am writing a high-trust provider-hosted SharePoint add-in that is based on the built-in MVC 5 web template, and I need to add the SharePoint Chrome control so that the add-in fits with the overall ...
3
votes
2answers
599 views

Responsive Sharepoint List forms

I am new to SharePoint and my project requires forms to be filled by different users on different devices and we have chosen SharePoint lists for our solution. By default the UI of the forms of ...
1
vote
0answers
19 views

Structure of AddIns in MVC-projects

We are moving an SP2013-onprem-solution to SP Online and Azure (provider hosted). Our Web Parts and Pages will be addins in on or more MVC-projects. There will also be some (Azure Web) jobs, setup-...
7
votes
3answers
4k views

When/How to use asp.net MVC inside Sharepoint on-premises and Sharepoint online

I know in SharePoint things can be done in many ways and using many technologies. But now I am a bit confused on when/how I can/should/most-appropriate to use ASP.NEW MVC inside SharePoint on-premises ...
0
votes
1answer
29 views

SharePoint 2013 App Part MVC View Presents 404

I have developed a high-trust provider hosted app using the MVC framework to display a series of employee-focused KPI data widgets. Everything has been highly successful until I began implemented the ...
1
vote
1answer
191 views

How to pass credential to SP site Object?

I created an API(In MVC) that fetch data from SharePoint calendar List using Client Context object. It worked but not able to read recurrence Events. So that I use SPSite then how to pass credential ...
0
votes
1answer
358 views

How to get choices from lookup field using CSOM?

I have an MVC app and am trying to recreate a Lookup site column on a page with a drop down list (add all the choices to the list). The itemColl ends up being empty, is there something that I'm not ...
2
votes
3answers
340 views

Lookup field based CAML query returns the entire list instead of matching data [duplicate]

I m using O365 List called Employee with lookup field. When I query the list based on the lookup column it will returns all list Item instead the matching data. Could you please help me. Using MVC ...
1
vote
1answer
299 views

fill a dropdownlistfor using jquery

I m filling a (MANAGER)dropdownlistfor based on (DEPARTMENT)dropdownlistfor as follows. Using MVC mode SP O365 list. But I m not sure how to pass the selected value from Department dropdown to ...
1
vote
0answers
46 views

Use MVC Bundling in Sp2013

I am trying to use MVC bundling and minification in SP2013 I don't know if I can ! I took code from simple webform aplication that work and tried make it work in my project : spcode: public static ...
1
vote
2answers
46 views

SharePoint Website Dev

I have been commissioned for a project to build a website using SharePoint. I am a Front-end, WP developer and designer by trade, have access to companies Office365 SharePoint online, but have little ...
5
votes
2answers
221 views

Cannot publish my SharePoint MVC app project in VS

I created in VS2015 a new App. VS will create automatically an app project and an MVC web project. Inside my MVC web project I have an template xml file as follow: <?xml version="1.0"?> <pnp:...
1
vote
0answers
114 views

Sharepoint CSOM Mapper

Hi I'm new to SharePoint and developing with it, but having done a few tutorials I'm trying to get myself off on the right foot and put together a solution. Firstly the solution has already been made ...
0
votes
1answer
156 views

Why is my form validation fired initial in my mvc app part?

I have created an SharePoint MVC provider hosted App Part. In my app part I have a form. This form has 2 actions. One is the httpget action and the other is the httppost action. It looks like the ...
2
votes
0answers
27 views

How to use the MVC's dll in the SharePoint for the blend solution

I have MVC solution and that/dll, I have to add in the SharePoint solution. To use the user profiles & lists. How can I do this?
1
vote
1answer
547 views

Running an MVC application on Sharepoint site or Convert to an Add-in

So we have a new SharePoint 2013 intranet site and I have been tasked with migrating our existing MVC and ASP forms sites to it for a single sign on. My first idea was to just host them as ...
1
vote
1answer
147 views

Creating a SharePoint sub site programatically from an MVC application

I have an SP site collection. My requirement is to create a sub site in this site collection from an MVC application. When I enter the name of the site and click on 'Create' button from MVC site, a ...
0
votes
1answer
224 views

Visual Studio 2013/15 MVC web application

I'm trying this articles\tutorials to get an MVC portal going but none seems to match. Does anyone know a tutorial that works? Checked this: https://blogs.msdn.microsoft.com/officeapps/2013/07/09/...
1
vote
1answer
598 views

SharePoint appredirect.aspx redirects with POST

I have a provider-hosted app built with MVC deployed in SharePoint Online. I have a controller, Tasks, and an action, Details. If I navigate to the details page for a particular task (/Tasks/Details?...
0
votes
1answer
290 views

SharePoint provider-hosted app filter document library CSOM

I have the following code that gets files from a document library. Works great for getting all the files. Now, however, I want to filter the files using the "title" param before passing it back to my ...
0
votes
1answer
477 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 add-...
0
votes
1answer
485 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. Product List <table ...
0
votes
1answer
2k views

Show the images from the shared drive with C# MVC [closed]

I want to show the images from the shared drive, I have published the solution and hosted in the IIS and created one directory named as "Images" which directs to the another server's shared folder ...
4
votes
1answer
2k views

SharePointContextProvider not found when Creating a provider hosted app with VS2015

I try to create a provider hosted app (MVC) with VS2015. I use the standard template-approach like described there: http://chakkaradeep.com/index.php/building-apps-for-sharepoint-with-mvc/ (Or many ...
0
votes
0answers
78 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
1answer
1k views

Use entity framework code first in SharePoint Solution

I am trying to create an entity framework code first in a SharePoint Solution. Is it possible to use an entity framework code first in a SharePoint Solution? If yes, then how?
1
vote
0answers
80 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 ...
2
votes
0answers
981 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 ...
3
votes
3answers
3k views

SharePoint Context is null in MVC HttpGet request

I am new to MVC development, however, I current have a requirement to build an application for a SharePoint app. It is currently hosted on our Azure server and is up and running fine. My problem lies ...
2
votes
1answer
1k views

How to create Client Context from jquery AJAX Get?

I have an HTTP Post controller that I use in a SharePoint online provider hosted app. The controller code: [HttpPost] public JsonResult FinaliseQuote(string quote) { using (...
0
votes
1answer
335 views

SharePoint Online: Provider hosted App - Deployment Eventreceiver

I created a provider-hosted app, with a MVC webapplication. Inside my SharePoint project, I created fields, contenttypes and lists. But now I need a solution for this. 1) I need to create ...
0
votes
1answer
2k views

How to create single page ASP.Net application with Provider hosted apps

I need guidance on single page ASP.Net application with Provider hosted apps. I heard most of the people are doing this through MVC 5, Knockout.js along with PFA. In real time situation what is the ...
31
votes
0answers
3k 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, ...
1
vote
1answer
656 views

@target the name 'target' does not exist in the current context Provider Hosted App

I am combining a MVC 5 SharePoint Provider Hosted App together with pages with just javascript. I created a page with the following javascript: <script type="text/javascript"> var ...