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
1 answer
87 views

How to get ListItemCollection.Files paginated results

I have the following method in place and trying figure out how to update for paginated results using int pageSize & int page parameters. Currently I have pageSize working using CamlQuery RowLimit, ...
user avatar
  • 117
0 votes
1 answer
31 views

CSOM ListCollectionItems count based on folder path performance issues

I have a design requirement to get total count for ListItemCollection based on Files specified by Folder Path. I currently have the following code in place: using (ClientContext spClientContext = ...
user avatar
  • 117
0 votes
1 answer
424 views

SharePoint 2013 MVC Provider Hosted App Authentication Issues in Production

I have developed a Provider Hosted MVC App for SP2013. Everything works in my development environment; however, I am struggling getting it to work in our production (on-premises) environment. ...
user avatar
  • 21
0 votes
1 answer
26 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 ...
user avatar
1 vote
1 answer
22 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 ...
user avatar
  • 67
1 vote
0 answers
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 ...
user avatar
  • 31
0 votes
1 answer
366 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 &...
user avatar
0 votes
0 answers
231 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 ...
user avatar
  • 1,316
-1 votes
1 answer
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 ...
user avatar
0 votes
2 answers
987 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 ...
user avatar
  • 569
2 votes
1 answer
42 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 ...
user avatar
1 vote
0 answers
589 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 ...
user avatar
0 votes
1 answer
53 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 ...
user avatar
0 votes
1 answer
628 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. ...
user avatar
3 votes
0 answers
315 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....
user avatar
  • 569
0 votes
1 answer
104 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?
user avatar
0 votes
1 answer
56 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 ...
user avatar
  • 1,165
0 votes
1 answer
467 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 ...
user avatar
  • 2,818
0 votes
1 answer
521 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 ...
user avatar
3 votes
2 answers
865 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 ...
user avatar
1 vote
0 answers
20 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-...
user avatar
  • 1,017
9 votes
3 answers
7k 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 ...
user avatar
  • 2,214
0 votes
1 answer
44 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 ...
user avatar
1 vote
1 answer
274 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 ...
user avatar
0 votes
1 answer
429 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 ...
user avatar
  • 245
2 votes
3 answers
739 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 ...
user avatar
1 vote
1 answer
420 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 ...
user avatar
1 vote
0 answers
60 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 ...
user avatar
  • 53
1 vote
2 answers
52 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 ...
user avatar
5 votes
2 answers
249 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:...
user avatar
  • 4,325
1 vote
0 answers
161 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 ...
user avatar
0 votes
1 answer
168 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 ...
user avatar
  • 4,325
2 votes
0 answers
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?
user avatar
  • 2,444
1 vote
1 answer
607 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 ...
user avatar
1 vote
1 answer
195 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 ...
user avatar
0 votes
1 answer
235 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/...
user avatar
2 votes
1 answer
800 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?...
user avatar
  • 5,690
0 votes
1 answer
306 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 ...
user avatar
  • 1,165
0 votes
1 answer
502 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-...
user avatar
  • 61
0 votes
1 answer
735 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 ...
user avatar
  • 331
0 votes
1 answer
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 ...
user avatar
  • 2,444
4 votes
1 answer
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 ...
user avatar
0 votes
0 answers
85 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 ...
user avatar
0 votes
1 answer
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?
user avatar
1 vote
0 answers
84 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 ...
user avatar
  • 2,444
2 votes
0 answers
1k 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 ...
user avatar
  • 739
3 votes
3 answers
4k 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 ...
user avatar
  • 71
2 votes
1 answer
2k 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 (...
user avatar
  • 165
0 votes
1 answer
342 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 ...
user avatar
  • 2,704
0 votes
1 answer
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 ...
user avatar
  • 23