Questions tagged [asp.net]

ASP.NET is an application framework developed by Microsoft. It is built on top of the .NET Common Language Runtime (CLR). SharePoint is built from the ASP.NET framework.

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

Display/hide control in Webpart based on edit/browse mode

I have a Visual Studio project in which I have created a Visual Webpart. In the user control I have a panel which I want to display in edit mode and hide in browse mode. ASP.NET code snippet: <...
2
votes
1answer
640 views

Creating Workflow from asp.net form

I have deployed an asp.net web form in an application page in SharePoint 2013. The form was developed in Visual Studio 2013 with asp.net being used to build the form and vb.net for the code behind. I ...
4
votes
1answer
735 views

Uploading '.xlsx' or '.docx' to SharePoint 2007 from ASP.NET app causing file 'corruption'

I have an ASP.NET application wrapped in SharePoint 2007 website. Within this application I allow users to create requests and they can also upload supporting files for the request. When a user ...
3
votes
0answers
204 views

Distributed Cache error in uls logs Unexpected error in Decrypt - Exception 'System.Security.Cryptography.CryptographicException

Hi In WFE servers of SharePoint 2016 in uls logs there are many DCache errors like below and server performance is high w3wp.exe (0x0918) 0x2C48 SharePoint Foundation DistributedCache aa6e5 ...
1
vote
1answer
939 views

Moving a sharepoint folder from one site to another site using C#

I am new to SharePoint. I have given the flow below. • I have a button in visual web part called Archive. • On Click of the button I like to move the folder inside the site(A) to another site(...
0
votes
1answer
793 views

Ad-rotator Asp.Net Control on my 2010 master page does not work on child pages

I have a SharePoint 2010 site I'm setting up where I want to have an AdRotator on every page, so I added the control to my master page in SharePoint Designer. However when I look at my site, all the ...
0
votes
1answer
11 views

Conditions for the programmatically created Dropdown list do not work

The conditions for the programmatically created DropdownList do not work. When I click on CopyData, condition does not work and the DropdownList is reset to the beginning. <asp:DropDownList ID="...
0
votes
1answer
937 views

Sharepoint 2013 - Create custom page with code behind

I have many event receivers and, on error, I want to redirect to a custom page that will manage those errors. I know that I can create a custom page per Event Receiver with the creation of Mapped ...
1
vote
1answer
1k views

Refused to execute script Reserved.ReportViewerControl.axd in SharePoint 2013

We are migrating our ASP.NET WebForms and MVC 3.5 Application to our new SharePoint 2013. Lots of our applications use Reporting Services which use ReportViewer Control 9.0 but when we deployed the ...
0
votes
0answers
8 views

Setting list item permission using WCF services and Consuming it

I have been using SharePoint Workflows to automate approval processes. Occasionally, we get some of workflows failed for no obvious reason. After re-starting them, it works fine. To avoid these type ...
0
votes
0answers
12 views

How to show pdf documents inside the email body using C#

I have a requirement to send an email programmatically with hmtl body content. Inside the Email body content, I have to show the pdf documents. like below. ABCText PDFDOC1 PDFDOC2 when a ...
0
votes
1answer
37 views

I am writing a web api code to upload documents in specific folder using csom code using savebinarydirect method, which is failing

I can upload the documents using a console app, but when using the same code in. Net Web API, I am getting an error saying, "Microsoft.Sharepoint.Client.File" doesn't contain a method "...
0
votes
1answer
3k views

SCRIPT1004: Expected ';' error in the browser

I am using this script to hide 'Edit' button from SharePoint ribbon on my custom webpart's ascx page and calling it in the page load: function hideEdit() { var edit = document.getElementById("...
8
votes
2answers
2k views

SharePoint 2013 and WebApi

I would like to use ASP.NET WebApi inside a SharePoint 2013 farm solution. I know it is not supported out-of-the-box, but I found SignalR can be run by means of a simple HttpModule, so I was ...
0
votes
1answer
34 views

Null Reference Exception in Global asax sharepoint

I am overriding our global asax page where i want our users who are in a particular sharepoint list/ sharepoint group be redirected to the 2fa page (third party provided) every time the access ...
1
vote
1answer
605 views

Listbox in webpart has no selection

I'm having a problem that's really blowing my mind right now, because it seems like some basic .net functionality isn't working properly. No doubt I'm missing something really obvious. I could really ...
1
vote
1answer
22 views

Modernizing pages: webpartmapping.xml not found

I want to modernize site pages by following the .NET version of this Microsoft Blog: Modernize your SharePoint Pages I added the nugget package, I use a SharePoint Online Url. When I get to the code ...
1
vote
1answer
625 views

Implement multi select lookup using listbox control in aspx page

How can I implement the multi look up select list items functionality in SharePoint using asp.net C#? Please help me with some code, I am using two list boxes and have added a add remove button on ...
0
votes
1answer
26 views

Column data securely open for users

We had one secured list on SharePoint 2013. Under list different column exist. Particular one column(column name as "Internal data\link") we had more secured data (or) links exist. Our requirement is ...
0
votes
2answers
735 views

The URL <filename> is invalid. It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current Web

I am using Microsoft.SharePoint.Client to work with SharePoint 2013 files in asp.net MVC project. I am able to load file then execute the query but after loading, i have to checkout file. on checkout ...
0
votes
0answers
192 views

Using Sharepoint LoginName as parameter in datasource

This question was on StackOverflow, but I thought this would be a better place for it. I am using asp:SqlDataSource to pull data and display this in a repeater control. What I would like to do is ...
2
votes
5answers
2k views

Best PDF converter for general formats

In our SharePoint project we are looking for a third party .dll which is able to convert different file formats into PDF as follows. .doc,.docx to PDF .xls,.xlsx to PDF .ppt,.pptx to PDF HTML to PDF ...
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 ...
1
vote
0answers
20 views

Sharepoint Web Part Error CS1061

My web parts deployed yesterday morning very well. Cant recive code in my ascx. now getting error like this : Error CS1061 'announcementdescription_announcementdescription_ascx' does not contain a ...
0
votes
1answer
18 views

Missing dll for workflow

When attempting to access http://[domain]/sites/Home/_layouts/wrkmng.aspx I receive an error about a dll missing from the asp.net framework folder. I navigate to the folder and the dll is in fact NOT ...
1
vote
0answers
16 views

Can I use libman with my SharePoint Add-In project?

I've noticed that libman is only available in Visual Studio 2017 asp.net projects. However, SharePoint Online Add-In projects are also web projects and use lots of javascript libraries. Is there any ...
3
votes
0answers
36 views

Add search on refinement webpart

I have a webpart code in Sharepoint Online that shows me a refinement. My problem is that i want to add a search bar in the refiner, like the photo below. My code is: <webParts> <webPart ...
0
votes
3answers
739 views

How to get the SharePoint URL in C# with “https”?

How to get the SharePoint site secured URL(https) ,present I am using this : SPWeb web= web app.Sites[0].RootWeb; string example = web.URl+"/sites/pages/...../....aspx";
1
vote
0answers
105 views

is it normal to create helpdesk webpart system using asp.net in sharepoint portal?

I need to create Help-desk System in SharePoint Portal. I can create it in asp.net, and then convert it to webpart. But this way restricts using of such things as workflow and other sharepoint tools. ...
1
vote
1answer
144 views

Scaling up limits of a single IIS worker process

How many cores can a single worker process typically handle before performance becomes impacted? In performance testing we are currently running into capacity limits on the WFE servers generating a ...
0
votes
3answers
67 views

query via caml in sharepoint list

hello I'm doing a query caml in asp.net c # to search by user of my column "users" that I have but only works with a single user, and when I change user and enter another brings me all the users I ...
1
vote
0answers
20 views

Call VBA of Word template from .NET at server side using Sharepoint Server?

Can i call a VBA macro of a Word document, using .NET and Sharepoint Server? I mean, in a .NET client environment i can do this: oW = CreateObject("Word.Application") oW.Documents.Add("template.dotm")...
0
votes
1answer
33 views

Unterminated string constant

I have an edit linkbutton where I click and it brings a pop up dialog with the text to edit. When I edit the text and submit it works fine. but if I include an "Enter/Return" space in editing then I ...
0
votes
2answers
150 views

Show sharepoint list in a datagridview using c #

I would like to know how to show a list of sharepoint in a page of asp.net c # by means of a datagridview and be able to modify it by adding a record to the list by means of a button. Beforehand ...
1
vote
0answers
72 views

How to embed Document Library in .NET Application same like embedding in Microsoft teams?

In Microsoft Teams, when we add a document library into the tab, it embed only Document Library, no Other portion like Header or side bar of SharePoint is visible. I want to embed the same like in my ...
0
votes
1answer
223 views

401 Unauthorised access from asp.net Application WebResponse

When I am trying to access(view) a sharepoint image from asp.net application I am getting 401 Unauthorised error. I am using following code: Dim webReq As WebRequest Dim webRes As ...
15
votes
4answers
19k views

SharePoint designer is showing “Server error: this file may not be moved, deleted, renamed or otherwise edited”

I want to edit the seatle.master master page for my enterprise wiki site collection. So I did the following:- I copy the seatle.html inside the SP designer. Paste it. It automatically creates two new ...
1
vote
1answer
1k views

Different breadcrumb navigation style on some pages

I am working on a theme for SharePoint 2010. While working on the header area, I ran into a very annoying problem regarding the breadcrumb navigation: It looks good everywhere, except for sites that ...
0
votes
1answer
363 views

Problem on accessing Allitems.aspx, “Sorry something went wrong”

When I try to access a link from our portal company website (SharePoint), for example AttendancePlaces/AllItems.aspx, it asks for admin credentials as normal but after that I get an error "Sorry ...
0
votes
1answer
50 views

How to pull information from Sharepoint and display on a seperate website built with ASP.net and HTML

I have been tasked on creating an intranet website for my company. Currently we are using Office 365 SharePoint but my manager wants me to create a custom website which would be built on top of ...
0
votes
1answer
327 views

Connecting on-promise database to SharePoint online

We have some SQL view on-promise server, we would like to display this data on the SharePoint online. Normally once we need to connect to this database from different network, VPN connection is ...
0
votes
1answer
193 views

MAKING A BOOTSTRAP 4 CAROUSEL SLIDER [closed]

I tried to MANIPULATE an example BOOTSTRAP 4 CAROUSEL SLIDER but I find a problem when running my application in my site sharepoint 2013 here is my code ...
0
votes
1answer
310 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. ...
1
vote
1answer
6k views

How to solve "Type 'System.Web.UI.UpdatePanel' is not defined?

I'm using an update panel on a form to stop the page jumping and flickering when drop down lists etc are selected, I have enclosed the table which holds this inside of an update panel and a content ...
0
votes
1answer
416 views

How to properly use GridView to create items on SharePoint Lists?

I'm trying to transfer values from a GridView web-control I'm using in a webpart into a SharePoint list, but whenever I click "save" the data isn't being kicked into the list. All that happens is a ...
0
votes
2answers
10k views

How to use SPSecurityTrimmedControl to check if current user has edit rights to current page?

I am making a visual webpart in SP2010, and I want to use this below to only show content if the current user has edit rights to the current page: <SharePoint:SPSecurityTrimmedControl ID="...
1
vote
0answers
74 views

OnClick Submit Button and Populate 2 Lists

I'm new to C#, ASP.Net I am trying to populate 2 SharePoint Lists off 1 submit button. C# code: public partial class Default : System.Web.UI.Page { static Uri _site = new Uri("https:...
0
votes
1answer
20 views

Content Search Webpart is not displaying after adding ddl.ClearSelection()

I'm having issue on asp:dropdownlist and search result display. One of the issues is "Cannot have multiple values on DropDownList", so, I looked it up and most of the suggestion were the use of ...
0
votes
1answer
372 views

How to dynamically display most visited links in a SharePoint Site to site visitors?

I'm trying to display most visited links in an internet-facing SharePoint site to site visitors in a dynamic way. For example: The most visited links will be colored based on the clicks on those ...
0
votes
1answer
290 views

asp:Repeater control is not working properly SharePoint 2013

I have created a custom list form and inside of it I am using a Repeater Control. But If inside of Repeater I create a <SharePoint:FormField runat="server" ControlMode="New" FieldName="Title" /> ...