Questions tagged [development]
The process of developing software, including requirements gathering, solution design and analysis, implementation, testing, deployment, support and maintenance.
4,583
questions
5
votes
1
answer
3k
views
System.ServiceModel.ServiceActivationException "A relative URI cannot be created because the 'uriString' parameter represents an absolute"
The client object model code in my application is throwing the following exception. How to solve it?.
System.ServiceModel.ServiceActivationException: The service
'/_vti_bin/client.svc' cannot be ...
0
votes
1
answer
117
views
How to approach a file in visual webpart
To explain my question, lets consider I'm developing a webpart in Visual Studio, a visual webpart.
By default when I add a webpart to solution, it creates a MyWebPart wich exists of 3 files:
Elements....
2
votes
2
answers
1k
views
Unable to create SPUserToken objects or use SPSecurity class
As shown in this image, I am unable to create a SPUserToken or run the SPSecurity.RunWithElevatedPrivileges() delegate in order to elevate the current user for the purpose of managing list item ...
2
votes
1
answer
2k
views
How custom HTTPHandler works in sharepoint 2013
I am reading some existing code in a project and there are some custom handlers that validate some data on application pages.
The question is: Does these HTTPHandler get executed for every simple ...
6
votes
1
answer
2k
views
Sharepoint Client context (client Object Model) cant load more than 500 records or more
is here any limitation about read the records from any lists in sharepoint?
my codes are default that downloaded from msdn:
string siteUrl = SharePointAddressURL;
ClientContext ...
6
votes
5
answers
9k
views
Redirect From one app page to another
I am creating a Provider hosted app. In that I have created two different .aspx pages. I want to redirect to the other page. But I am not able to find it out how to redirect.
When I check my ...
0
votes
3
answers
496
views
Read list from central admin
I have an application page which connects to a sql database based on settings on a list hosted in central admin.
For some reason, I cant debug the web.GetSafeListByName, I attach the debugger, put a ...
2
votes
1
answer
167
views
Error using ListViewWebPart in a "using"
This one has me stumped.
I'm creating a ListViewWebPart, which ultimately inherits from System.Web.UI.Control which implements IDisposable. So ListViewWebPart should also be IDisposable. Right?
But ...
1
vote
2
answers
2k
views
Undefined responseXML on StartWorkflow
I was presented with a task to run a workflow via jQuery. I know that SPServices has this capability, but I have never tried it before being assigned this task. So I set out and found some good ...
1
vote
0
answers
1k
views
Custom DLL in InfoPath form not working on SharePoint
I created a form in InfoPath 2007 that uses C# code behind. The form basically is a "user friendly" front end for our current Help Desk ticketing software. The form communicates with the Help Desk via ...
0
votes
1
answer
780
views
executeQueryAsync in ecma client object model causes 404 error [closed]
I have a custom action where I will create a new item in the ecb menu for a document library and once clicked it will call a javascript function and there using ecma client object model I will ...
0
votes
1
answer
36
views
user profile informations
How can I select the custom user profile information?
When I apply this code, I only reach the AD user profile information, but I have some additional user information. How can I reach them?
u[...
2
votes
1
answer
382
views
Nav showing drop down subsites when on _layouts/settings.aspx
In both of my custom master pages (both front master page and system master page) I have a navigation control (AspMenu).
On all custom pages and application pages, the nav displays no drop down for ...
2
votes
1
answer
136
views
Error on updating a document item
I have an issue with updating an item in ItemUpdated event.
Basically on ItemUpdated, I would like to reupdate that item by setting some properties, because it is a docx I have to do it in ...
1
vote
3
answers
320
views
Can I programatically move sites or content between 2007 and 2010?
Using the SharePoint Object Model on a SharePoint 2007 environment and the remote object model to talk to a SharePoint 2010 environment would it theoretically be possible to migrate sites or content ...
1
vote
1
answer
433
views
Isolate web.config files for different SharePoint web applications?
We're in SharePoint 2010 and using C#.
We've encountered and issue where we need to have separate web.config files for different web applications. The base web.config file that resides in C:\inetpub\...
4
votes
2
answers
4k
views
How to collate/merge two different lists, with the same colums into one list
I have got two different lists. One is live updated by many users. The second list has the same fields and works as the master. I want to every day, at 6:00 o'clock a.m, merge List one with list two.
...
0
votes
1
answer
55
views
Is there in CAML any equivalent of SQL query Prepare
I'm looking for any equivalent of SQL query Prepare in CAML. Could You help me.I need optymalization in CAML.
0
votes
0
answers
966
views
How to filter list in sharepoint by another webpart(dropdown list) in C# code?
I wanna filter list in sharepoint by using dropdown list in visual studio, And view in sharepoint can't serve me in that , And i searched a lot but i didn't reach any thing
6
votes
2
answers
1k
views
Picture Library Image size event receiver
I created a event receiver but work ok for single file but no work for multiple files,
HttpFileCollection collection = _context.Request.Files;
for (int i = 0; i < collection.Count; i++)...
1
vote
3
answers
2k
views
Working Twitter Feeds on Sharepoint 2013?
been trying to get a Twitter feed to work in SharePoint 2013 for some time but it just doesn't seem to be playing ball.
I've tried a couple of methods (embedding the code straight in and also using ...
0
votes
1
answer
41
views
Setting audiences in share point 2010
I have written html/css code to display the menus. Now i need to hide the multi level menus(links) using windows authentication. i mean we need to set the target audience for the links. But,. i do not ...
0
votes
0
answers
163
views
SharePoint Site Content Types and Site Columns Galleries are empty
I provisioned a SharePoint (2007) site collection using C# SharePoint API. Pretty standard stuff. Subsequently, I added a couple of site columns, document libraries, etc. and then a child website ...
1
vote
1
answer
3k
views
Auto-compress images when uploaded to Image Library
I have a need to auto compress images as they are uploaded to an image library. Using code or otherwise how could I go about this? I don't want to specify a fixed height / width but would rather ...
0
votes
1
answer
37
views
Select powerpoint slides and then build a presentation from it
I have a business unit that would like a document library that displays a series of pre-approved company Powerpoint slides. The user would then select the slides that want, click a button and a ...
0
votes
0
answers
62
views
repeating table problem
I created content type and add them on custom list in visual studio.
I want to use some of my list item columns like repating table columns.
Is there any solution or alternative way except infopath ...
1
vote
2
answers
3k
views
Listdata.svc via REST refuses to return data
I'm trying to pull down some list data from listdata.svc using the standard method as documented in the msdn:
var listUrl = 'http://development.contoso.com/_vti_bin/ListData.svc/Contacts';
$.ajax({
...
1
vote
2
answers
6k
views
Workflows and SQL Server Databases
Is it possible to create a workflow that is started by activity in a SQL Server database that is outside of SharePoint?
Using a WebPart to put and modify data in a database isn't a problem. ...
0
votes
1
answer
34
views
Error with using Session in SP2010
I have got a problem with using Session at Sharepoint 2010.
I use this code:
Session["Dzien"] = TextBox3.Text;
Session["Pracownik"] = DropDownList1.SelectedItem.Text;
I put at web....
1
vote
0
answers
165
views
Create TreeView C# for Office 365
I am currently building an Outlook Addin which enables users to save E-mails directly into SharePoint Online.
but before the E-mails get saved, they Need to be prompted by a Windows which has a ...
0
votes
1
answer
303
views
How to increase the reliability of deployment?
Deploying solutions, both from within Visual Studio and a Powershell script seems really unreliable. For example, I have one package trying to deploy about 3 .dlls and on average it's taking 3 ...
1
vote
0
answers
200
views
ViewState Timing Issues with SharePoint 2013 & ListView plus DataPager
Good morning! I'm porting an existing custom 2010 webpart containing a ListView and a DataPager to 2013 and seeing some weirdness with the DataPager and I believe the cause is associated with the ...
2
votes
1
answer
642
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#?
...
0
votes
1
answer
1k
views
Programatically adding webparts to a page in sandbox
I've successfully implemented code to add web parts to web part zones in code using WebPartManager's in other projects.
Now that I'm working in a sandbox solution, VS can't seem to recognise ...
0
votes
1
answer
51
views
what we shall use in sharepoint now Ajax or jQuery
I need to add message boxes and other components every now and then.
I can use jquery plugin or ajax so I was wondering which one is the best to use in this type of scenario.
I see in Sharepoint ...
2
votes
1
answer
706
views
C# How to read display templates location in Sharepoint 2013
Sharpeoint 2013 has a default filter template located at:
_catalogs/masterpage/Display%20Templates/Filters/Filter_Default.js
How can I read the absolute path of the _catalogs masterpage in C# ?
...
1
vote
1
answer
333
views
Loading a UserControl within another UserControl code
Can someone tell me how I can load a user control from within another user control.
I'm using MOSS 2007
0
votes
0
answers
35
views
How to only import specific ListItems in SPGridView
I can print all list items in the list in the SPGridView:
SPList list = witryna.Lists["Szczegoly"];
SPListItemCollection items = list.Items;
gvListItems.DataSource = ...
1
vote
2
answers
3k
views
how to update properties of item in doc set with client object model
I've been able to create doc sets and upload files to it with the client object model. I am having difficulty updating the properties of the files in the doc sets. Here is what I've tried:
public ...
0
votes
1
answer
111
views
textbox visual control how to get text
i have a user control, which has update panel and a button in it, when i click on button a message box appears, in messagebox i have one text box and another button,
when i click on another button, ...
1
vote
1
answer
48
views
no getting user control property from webpart
I am using this MSDN tutorial but it is not working,
http://msdn.microsoft.com/en-us/library/ff649867.aspx
When I try to get a usercontrol value, nothing comes up
try
{
// Loads a user control
...
0
votes
3
answers
614
views
User control propertie get from webpart
I have a webpart that is loading a user control, but I am not able to get the value of a webpart property in the loaded user control.
The web part code goes like this:
public class CVWebPart: ...
3
votes
1
answer
3k
views
SharePoint 2013 list items paging
I'm trying to make a webpart with list items paging. I followed this link http://www.directsharepoint.com/2011/03/step-by-step-guide-to-implement-paging.html
and on SharePoint 2010 server it works ...
3
votes
2
answers
3k
views
How to implement HTML5 Video in Sharepoint 2010?
Has anyone had any success in building a web-part with HTML5 video and using it in SP 2010?
Background:
Currently I am using JWPlayer by imbedding an HTML page using a content editor web-part.
I ...
0
votes
2
answers
3k
views
How to display and get the value chosen in an User field?
I'm very new at Sharepoint and I faced to a trick issue.
Here is the situation :
in an .aspx.cs file, I've created an EventHandler called btnValidate_Click, raised on a click on a button. In this ...
9
votes
5
answers
15k
views
How to download the historical file version content using CSOM
I am trying to download the previous version of a document from _vti_history location of the file using client object model but the OpenBinaryDirect is giving
not found 402 error
for URL.
My ...
1
vote
1
answer
2k
views
Will code created with 32 Bit SharePoint Designer 2013 be readable to another computer with the 64 Bit version of SPD 2013?
One of the developers on my team is installing SharePoint Designer 2013 on a machine with 32 Bit office. He attempted to install the 64 bit version and this error appeared:
Got we can't install the ...
2
votes
2
answers
346
views
How to get all web controls on a sharepoint page
I need to get all web controls on a SharePoint page but not sure,
using (SPSite bigSite = new SPSite("http://bigPortal.bbbb.com/bb/bbWeb"))
using (SPWeb bigWeb = bigSite.OpenWeb())
...
0
votes
2
answers
120
views
SharePoint 2013 Development enviroment
Can one develop SharePoint solutions without having installed SharePoint 2013 on local, development machine?
There will be one 'test' machine, however it will be placed on other machine, to save ...
1
vote
1
answer
3k
views
Client Object Model - Select distinct
I am using ClientObjectModel (C#) to retreive data from a custom list, which is structured like this:
What i need is some kind of "select distinct" which retreives only the categories, without ...