Tagged Questions

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.

learn more… | top users | synonyms

1
vote
1answer
319 views

Site Column as lookupfield creates false URL-Strings

I have a created a custom site column, which is a lookup field, on my rootsite. However, I use this colum now on a subsite in another list. The idea is, to have a central list with lets say Divisions, ...
-1
votes
1answer
1k 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 ...
0
votes
0answers
99 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 ...
1
vote
0answers
83 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 ...
0
votes
0answers
328 views

Getting error when doing a jquery ajax funtion to a webpart aspx page

I want to send data using ajax from jquery to c# (note: im sending request to the same page). I am following this tutorial http://encosia.com/using-jquery-to-directly-call-aspnet-ajax-page-methods/. ...
0
votes
1answer
87 views

How to add workflow tasks to a currently running workflow?

I would like to know how I can add a new workflow task to a currently running workflow. Essentially, my scenario is this: created a custom application page approval form user can add new approvers ...
1
vote
0answers
369 views

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

(x-post from http://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
1answer
632 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
214 views

Can I use Microsoft SharePoint 2013 to be my ASP.NET application portal?

I'm not an expert in SharePoint but what I know that SharePoint 2013 Foundation Edition is free, and I'm developing ASP.NET applcation which will have a portal. I'm wondering Can I user SharePoint ...
0
votes
1answer
534 views

SharePoint 2010, ASP.NET MVC integration

As I previously posted here I have to host an ASP.NET MVC 2 application on a SharePoint 2010 server. The application has to be hosted on the server, not referenced from a SP site. So I've been ...
0
votes
3answers
438 views

Items return null value from query in sharepoint?

I'm using this code to get items from the folder but it return null value in the SPListItemCollection. What's the wrong in my code? siteurl = SPContext.Current.Site.Url; SPWeb web = ...
0
votes
0answers
326 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 ...
0
votes
1answer
77 views

When registering an HttpModule for Sharepoint, where should the assembly reside?

Meaning where in the path of the Sharepoint web site/app should the assembly reside? My module is currently not being loaded. Does it have to be in the GAC?
2
votes
1answer
271 views

Updating contents in a custom webpart in a Discussion Board topic page

I have made a custom Visual Webpart. I'm wanting to periodically update a label in the webpart without refreshing the whole page. I've got the label to update, however it is also updating the replies ...
2
votes
1answer
256 views

Listing all the documents in SharePoint server using C#?

I'm new to SharePoint server. I need to get the list of all document stored in SharePoint server, not in particular user site. Is there any way to get all documents list , name or count using C#? ...
2
votes
1answer
350 views

jQuery not loading in sharepoint 2010 asp.net page

I am making an visual webpart in Sharepoint 2010, and I am trying to load my jquery files in the ascx page. Near the top of the page I have this: <SharePoint:CssRegistration ID="jquery_css" ...
3
votes
1answer
907 views

Using the razor engine in SharePoint 2013 Visual Web Part

I'm trying to make use of the razor engine in a SharePoint 2013 Web Part. This, I read, shouldn't be too difficult since SharePoint 2013 Visual Web Parts can be built using .NET Framework 4.0 I'm ...
0
votes
2answers
369 views

cannot open microsoft.office.interop.word document

i am trying to open a word document but i dont work i can only save the document not open what could be the problem? I get this following Error when trying to Open: I am running SharePoint do i ...
0
votes
2answers
72 views

Help embedding asp.net page in a Sharepoint Web Part

First off, I do not have access to designer, so I'm attempting this through my SharePoint site's on-page edit tools. I realize that this may not be possible, but I'll ask the question anyway. :) I ...
1
vote
1answer
31 views

Creating a link in page content?

I have a html custom master page with html links. I am currently using static url's to link to pages and wondered if there is a way I can use a dynamic path in asp or sharepoint language so that when ...
0
votes
2answers
87 views

How to embed image in SharePoint Workflow Association Form?

I am developing a custom SharePoint workflow in Visual Studio. I have a custom association form (ASPX) and I'd like to display an image, which is embedded into the project (and subsequently wsp). ...
-2
votes
2answers
81 views

Moving SharePoint portal to ASP.NET web application [closed]

I have a client requirement to move a SharePoint portal with all typical SharePoint features such as CMS, collaboration into an asp.net web application. The decision is already confirmed, so I do not ...
2
votes
2answers
84 views

Navigation on webpart

I don't really got a problem just a question. After googling around I couldn't find any answer on what I'm looking for. Is it possible to put a <asp:TreeView/> or multiple ...
0
votes
1answer
49 views

SharePoint 2010 - ASP.net List folders from network location

New to SharePoint & ASP is there any way to simply list folders from a given network path and display them in a SharePoint webpage? Thanks Niall
0
votes
1answer
48 views

created external site - but I'd like sharepoint to search it?

I've created an external site outside of sharepoint completly. It's just a basic site that allows our users to get to specific sites. I wanted to simply embed this site via a url inside of ...
1
vote
1answer
285 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 ...
0
votes
1answer
177 views

Custom Event Reciever For Document Library(sharepoint 2010)

I have a month column which is a choice column in my document library in the format specified below.. For eg. Jan 2013 I have the following requirements 1. The month dropdown should always have only ...
0
votes
2answers
31 views

How to round a datatime LocalTime to the onkly datatime. Not to the time with hours

I have got a code: DateTime dzienStart1; DateTime dzienStop1; dzienStart1 = dzienStart.ToLocalTime(); dzienStop1 = DateTime.Now.ToLocalTime().AddMonths(-2).AddDays(-1.0); Whem I look at a date in ...
1
vote
3answers
555 views

Sharepoint beginner

I'm a Sharepoint beginner, just getting into it. Please suggest me some best way to learn sharepoint and best books available in the market. We are using SharePoint 2013.
0
votes
1answer
157 views

Unique ID get selected list

How do i do so i can work on multiple lists? This works if i'm working with one list. (SPSiteDataQuery) SPWeb web = SPContext.Current.Web; SPList myList = web.Lists["Staff ...
0
votes
1answer
70 views

Time in Sharepoint

We have got two method in Sharepoint to get the time. One is ToUniversalTime() an secound is ToLocalTime() But when we are in server and have got a aplication instaled on server which kind data method ...
1
vote
2answers
347 views

Optional Parameters in C# at Sharepoint

How Could I set optional parameters when programing in sharepoint. Now I'm while debuging getting error: Feature 'optional parameter' cannot be used because it is not part of the 3.0 C# language ...
0
votes
1answer
173 views

Gridview not showing date

I'm working with a gridview, so i can show data from my three lists. I get it to show the title, but the date doesn't appear! Check the if statement. using (SPSite site = new ...
0
votes
1answer
155 views

Search multiple lists

I want to search through my lists. And show it on a repeater control. On my dropdown i got 3 options, (All, List1 and List2). But my If statement wont work. The else is working fine, but it hangs when ...
0
votes
1answer
65 views

Listinstance url

I'm working to show my attachments in a repeater control. It works ALMOST perfectly. I just want to get the full url to my attachment. Right now i'm getting: ...
0
votes
3answers
3k views

Could not load file or assembly 'Microsoft.Sharepoint.Sandbox' or one of its dependencies

I created an ASP.net webapplication and i have used assemblies Microsoft.SharePoint; and Microsoft.Office.Server.UserProfiles in it.. i get a run time error "Could not load file or assembly ...
0
votes
1answer
409 views

Repeater control reverse order

I'm working with a repeater control that displays my list items. Everytime i add an listitem it displays it on my repeater. But i want the repeater to display the latest added item at the top. Any ...
1
vote
1answer
510 views

Change context using RenderContext for SharePoint control doesn't work after postback

I am trying to create an ASP workflow task form. It should contain two types of fields: fields from related item (on which WF was started); fields from task (such as Due Date). For that I try ...
0
votes
0answers
268 views

ASP Calendar double click event get the date of clicked day

I haw got the ASP Calendar. I want to choose range from date to date. If i choose "SelectionChanged" i could only set one date. I think meybe I could set a second date which is end of Date Rannge when ...
2
votes
2answers
1k views

How can I send data to a modal popup without using a jquery string?

as a bit of background I am new to Sharepoint development, as well as web programming in general. I've done asp.net programming in the past, but not much javascrip/ajax/jquery. From the (tons...) of ...
2
votes
1answer
66 views

How to Retrieve the Data from an Individual Blog Post

I am trying to brand a blog post according to our standards, and to do that I have simply created a custom visual web part to take the place of the SharePoint default. What I am wondering is how am I ...
0
votes
1answer
1k views

visual basic in sharepoint 2010

I am new to SharePoint. My head in the office told me that if you want to learn SharePoint, you have to learn ASP.Net first because we need to add webparts to the portal. I installed visual ...
2
votes
3answers
3k views

The remote server returned an error: (401) Unauthorized sharepoint

Here is my scenario:- I have my Sharepoint server hosted on Domain A and I have my machine on Domain B. There is not any trust between Domain A and Domain B. I am trying to access the Sharepoint ...
-1
votes
3answers
37 views

Two DropDownLists in this same site

I have got two DropDownLists. I want when I set in one value it should change in secound DropDownList the vales. Please Help. Always the values should look like updated.
1
vote
0answers
15 views

controls to make extendable zone

I'm making a setting page in my sharepoint site and there is a lot of setting zone in this page , so I'm thinking what's the asp or SharePoint control that make each zone appears just by clicking on ...
4
votes
1answer
605 views

How to alter SP2013 workflow task from an ASP task form?

I have created SPD workflow with a custom ASP form. My form opens when clicking on a task link and I can show information about the task. Now I want to alter the task after pressing a button, but ...
1
vote
1answer
292 views

Open in new tab document link item from document library

I have a document link item that points to a URL. This item is inside a document library. Is there a way to make this item open to a new page? I opened the aspx file it creates, but I am unsure how ...
1
vote
0answers
79 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
33 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 ...
0
votes
1answer
76 views

Sort alphabetically Users

When I'm Adding users, i want to sort them alphabetically. Could You help. Here is my code: SPUserCollection userzyWszyscy2 = witryna.SiteUsers; foreach (SPUser oUserKolejny in ...