Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

4
votes
0answers
2k views

Content controls have to be top-level controls in a content page or a nested master page that references a master page

I build an MVC application and I run it by linking a content editor webpart to the index.html file. That usually works fine but I'd like to build it into an aspx page and link to that page directly. ...
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 ...
3
votes
0answers
189 views

Viewstate expires after some time for application page in SharePoint 2013?

I have a simple ASP application page added in a SharePoint project just for presentation purposes, so it's ASP web forms page is hosted in SharePoint. HTML: <asp:Content ID="Main" ...
3
votes
0answers
272 views

Include actual error in SP2013 error page

SharePoint 2013 gave us a wonderfully useful new error page that looks like this: As any 2013 admins know, clicking the "Technical Details" link just gives you a correlation ID that you have to track ...
2
votes
0answers
163 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 ...
2
votes
0answers
117 views

Requested site does not appear to have claims enabled or the Login Url has not been set

i am currently getting information from my company's sharepoint page and display it on my asp.net project. I am using ClaimClientContext for authentication, and of course in my local host it is ...
2
votes
0answers
149 views

Custom webpart cannot load file or assembly

My visual webpart is under the namespace IAA, and under IAA.ExtendedControls I define a few custom ASP.net Control tags to use on my .ascx page as follows: namespace IAA.ExtendedControls { public ...
2
votes
0answers
28 views

Manage SharePoint Permissions with remote ASP.NET Application

We have the following requirements and I have my doubts if this is possible to implement. Application is a standalone ASP.NET application with its own SQL Data source Application should manage ...
2
votes
0answers
693 views

Update SP Item in Parallel.ForEach loop

I'm trying to update columns of a ListItem in sharepoint using the following code: ClientContext context = CreateClientContext(_siteUrl); SP.List list = GetList(listName, context); Uri baseUri = ...
2
votes
0answers
86 views

Chart control data points not visible - Visual WebPart

I have created a Chart control based visual webpart. I have used custom labels for both x and y axis. The problem when i am trying to plot xy values, it is not visible in the chart. Code chart1....
2
votes
0answers
1k views

Custom aspx page with web part

What would be the best way to have a custom asp.net page which runs on sharepoint and displays a web part? TIA
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
19 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 ...
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 ...
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")...
1
vote
0answers
66 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 ...
1
vote
0answers
72 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:...
1
vote
0answers
29 views

Opening a page from Email link does not populate the form with data, in that page

On performing some action(approve/reject a request) an email is generated with a link in it. On clicking the link, a SharePoint QA page opens that contains a form. All that works well! My issue is, ...
1
vote
0answers
157 views

SharePoint 2016 & Razor Pages

Can anyone think of any applications of Razor pages within sharepoint 2016? I've been asked to find any possible applications of razor pages within SP 2016 as we're updating to 2016 but future ...
1
vote
0answers
52 views

Server error “/” in the application SharePoint 2010 when filter option is clicked in list

Have an error with a user on SharePoint, when user clicks on the filter options on SharePoint 2010 list the error below appears, it is not consistent but does happen regularly. Any ideas? Thank you ...
1
vote
0answers
55 views

Custom list view based on current URL

I would like to create a list view in a template site si that when a subsite is created by using that template takes the subsite url, extracts the name (e.g. in https://...sharepoint.com/sites/...
1
vote
0answers
41 views

What is the best way to open a SharePoint document on a web site that must use CSOM?

I have a website that is NOT a SharePoint server. I need to display on my website a document that IS stored in SharePoint. So I will have to access the document via CSOM, but what is the best ...
1
vote
0answers
132 views

Bind Asp hyperlink navigate url dynamically

I have to bind the navigate url property based on a specific condition . The hyperlink control is based inside the repeater . I have created a hyperlink property.code is below HyperLink Hypltitle = ...
1
vote
0answers
70 views

Open up SharePoint Online in a browser as specific user

I've searched around for solutions to this but haven't found anything so far so thought i'd ask and see if anyone knows. Essentially, we're trying to intergrate an ASP.net web app with SharePoint ...
1
vote
0answers
79 views

SharePoint 2010 upload files from usercontrol

I have a user control to upload files in SharePoint document library <asp:FileUpload ID="fileBrowse" runat="server" /> <asp:Button ID="fileUpload" runat="server" Text="Upload Files" ...
1
vote
0answers
201 views

The assembly '..\v2.0.50727\Temporary ASP.NET Files\root\bf3fce1a\adf83866\App_GlobalResources.dll' is already loaded in another appdomain

we have intranet web application and deployed farm solutions, when we open any farm solution pages that resides n _layouts/eservices/empquery.aspx sometimes pages opened and get the data from sql and ...
1
vote
0answers
74 views

what is session sharing and how to do session sharing between IIS servers

we published an internet web application and many users access it daily, we have load balanced in our environment and 4 web front end servers here by default IIS 8.5 will share sessions or we need ...
1
vote
0answers
272 views

Add and get reply item from message discussion board

I want to add reply in particular subject in message discussion bord type list and get reply of subject from message discussion bord type list by SOAP services. I am using SOAP services of ...
1
vote
0answers
66 views

Wrong resources fetched

I am working on a SharePoint project and we have an Arabic version and an english version. There are two ways of changing languages. Either switch SharePoint platform language, or sending the language ...
1
vote
0answers
107 views

How to access subsite's groups with sitecollection context?

I have two sub-sites in my sharepoint site,SampleSite1 and SampleSite2 under Sitecollection called MainSite. http://xyz.sharepoint.com/sites/MainSite/ - SiteUrl http://xyz.sharepoint.com/sites/...
1
vote
0answers
581 views

Domain user returns false when I validate user using PrincipalContext ValidateCredentials

I have created a function to check domain user is valid or not and I have deployed this function to service.asmx in _layouts folder public bool CheckUser(string username, string password, string ...
1
vote
0answers
37 views

Use images inside SharePoint Online 2013 inside a ASP.NET applicatioin

I have SharePoint Online 2013 website up and running https://testapp.sharepoint.com/ and inside https://testapp.sharepoint.com/sites/ABC I have folder set which contain images. And I have a separate ...
1
vote
0answers
1k views

How to do single sign on between an asp.net application and existing sharepoint web application which is claims enabled

I want to implement single sign on between an asp.net application and an existing SharePoint web application which is claims authentication enabled. asp.net application is farm authentication ...
1
vote
0answers
268 views

How a Security token service rely on asp.net application authenticated users to authenticate share point

i have a requirement to authenticate share point from an asp.net application, if an user is authenticated to asp.net and after that also he able to authenticate to share point application . in asp....
1
vote
0answers
58 views

Calling http handler in user control

I'm trying to call httphandler in SharePoint usercontrol. I'm loading this usercontrol in a SharePoint web part. This httphandler is deployed to SharePoint layouts folder. Below is my code . this....
1
vote
0answers
32 views

User permission in sharepoint and .Net

I am creating a project to upload documents to SharePoint from asp.net .I want to achieve a condition where if the user is present in Sharepoint 2010 he should be able to upload the document otherwise ...
1
vote
0answers
392 views

Update Panel doesn't work inside web part zone

I have a visual web part that works if you insert it directly into the page layout, but not when you add it to a web part zone. The page: <asp:UpdatePanel ID="UPnlArticle" runat="server"> ...
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
0answers
3k views

The remote server returned an error: (401) Unauthorized. Using CSOM in ASP.NET MVC 4

I'm trying to pull data through SharePoint 2013 BDC Models that I have imported from my ASP.NET application which works fine when I run either locally on my machince or locally on the server. However,...
1
vote
0answers
114 views

SPgridView filtering Menu issues for Numeric column

I have built a SPgridview with Filtering, Sorting and Paging. In the grid , i have one numeric type column and other are string columns. There is a issue while filtering the numeric type column, the ...
1
vote
0answers
1k views

CreateChildControls() in Visual Web Part in SharePoint 2010 called twice

(x-post from https://stackoverflow.com/q/17065543/1943) I have a Custom SharePoint 2010 Visual Web Part which I've realized is calling the CreateChildControls() method twice. I've tried setting the ...
1
vote
0answers
16 views

controls to make extendable zone

I'm making a setting page in my SharePoint site and there is a lot of setting zone on this page, so I'm thinking what's the asp or SharePoint control that makes each zone appears just by clicking on ...
1
vote
0answers
99 views

DropDownList change the values in the same times

I have got two DropDownLists, and I want to change if I change in first Drop down list Values then I want to change in secound DropdownList. My first DropDownList has got a code: SPUserCollection ...
1
vote
0answers
34 views

Problem with finding out loged user

I try to write a procedure, which find out is the user logged or not not loged in the service. I write a code. But it sometimes giving me a true or false if not a person shown. Sometimes it gives me ...
1
vote
0answers
217 views

Visual Studio intellisense over WebDav (DAVWWW) does not work. Failed to Start Monitoring

The page lives in a library inside SharePoint 2007 and has inline c#.. no master page or sharepoint references. I can open, edit and save the page via the URL. But getting warnings and no intellisense....
1
vote
0answers
293 views

Dynamic content based on Eval() returning null

I have an SPGridView with a list as its source. I currently have it sorting first by published date, or if that is null, by modified date. The problem is that on the list view I need to put Posted on ...
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
0answers
30 views

SPSecurity.RunWithElevatedPrivileges fails after migrating app to Azure AD

I have an ASP.Net Web Forms application that has some code that gets values from a SharePoint site. It was working fine until we migrated the app to use Azure AD authentication. I'm guessing it's due ...
0
votes
0answers
106 views

Sharepoint RichTextField not visible

Hello I want to add a Rich Text Field to my Sharepoint Site. The Page shows with no problems but i cant see the Field. <SharePoint:RichTextField runat="server" ID="RichTextField_Ergebnis" ...