The process of developing software, including requirements gathering, solution design and analysis, implementation, testing, deployment, support and maintenance.

learn more… | top users | synonyms (3)

1
vote
1answer
60 views

Redirecting at Adding Item Added Item

I have read this article: http://www.sharepointkings.com/2008/06/redirection-from-event-handler.html , and i put this line in my code: SPUtility.Redirect("Event.aspx", SPRedirectFlags.Trusted, ...
3
votes
1answer
2k views

Client Object Model - Update Document Library Metadata - Lookup Field with no required value

I am attempting to update metadata for documents in a document library (or List) using the client object model. I have whittled down a number of the error messages I was getting and now I am hitting ...
1
vote
1answer
53 views

Site page as a Mobile view

I want to make a page that functions as the mobile view of our SP2010. It has to be clean and clear of all the MS (SP) code to keep it w3c standard, is there any way to do something like this? My case ...
0
votes
3answers
1k views

ItemAdding getting the file name of a document

I have a document library. I want to add an itemadding event recieiever to do some validation on the file name of the document. How can I get the file name from the SPItemEventProperties
1
vote
2answers
495 views

How to programmatically determine if anonymous access is enabled for a SharePoint 2010 Web Application using C#?

In Central Administration\Manage Web Applications, there is the ability to enable anonymous access on a web application through the authentication providers. Is there a way to programmatically ...
0
votes
0answers
141 views

ItemAdding or Item Added refresh Site

I looking for solution to refresh Site after Item Adding, or Ittem Added. I read this article, but I don't know how to use in my Code. ...
1
vote
0answers
68 views

Confirmation Box while Item Updating event Moss

I need a confirmation box for Item Updating event on a custom document library, can someone tell me what would be the best and quickest way of doing it using C#.
0
votes
2answers
2k views

How to get items id in properties.AfterProperties elements?

I try this in ItemAdding, but it isn't work(Gives Null): public override void ItemAdding(SPItemEventProperties properties) { base.ItemAdding(properties); if ...
0
votes
1answer
74 views

AutoStart Popup when some code are true

I have got a code: if (sumaProcentow > 8) { e.Cell.Style.Add("background-color", "#FF0000"); e.Cell.CssClass = "dni_swiateczne"; } I wont when this code are true to auto post popap in the ...
0
votes
1answer
44 views

ID column how is she caled

What is name of ID kolumn please help. I have a code: item["ID z Czas Pracy Wpisy"] = properties.AfterProperties["GUID"]; And don't know what is it name.
0
votes
1answer
37 views

removing or hiding option “Add new document” for a custom document library

I have a custom document library that "should only allow one user" to upload/Edit documents but let everyone else to download/View it. At the moment I got two events that are checking who is ...
0
votes
0answers
42 views

ID column in Sharepoint How it Cols in Internal name, and in Display Name

How calls a ID Sharepoint Column. Internal name. In ItemAdding I have got that code at Event Receiver: item["ID z Czas Pracy Wpisy"] = properties.AfterProperties["Identyfikator"];
0
votes
1answer
118 views

Display Name and Internal Name

I has this Code: var query3 = new SPQuery(); query3.Query = "<Where><Eq><FieldRef Name='Dzien' /><Value Type='DateTime'>" + ...
0
votes
1answer
92 views

If a change a name for the column of the list how can I get it back

If I made a list in first time and puts a names on them, it's work good, but when I rename it, and want to call back from the code, it don't see the rename title of items colums. How can i call to ...
0
votes
0answers
466 views

Cannot remove file <x>. Error Code: 16388

I've written a tool top copy/paste/delete files accross site collections and then remove the original version from the recycle bin. The method to copy the files is: public bool ...
2
votes
3answers
111 views

Using a development farm or standalone for developing against SP2010 Standard and Enterprise features?

When doing development for SharePoint 2010 Standard and Enterprise features, should we use a farm or a standalone setup? Please note that a similar question was asked ,but this aspect was not taken ...
3
votes
2answers
740 views

How to get changes from SP server 2010 in client object model?

Below is the code: ClientContext context = new ClientContext("http://SPSite"); context.Credentials = new NetworkCredential("user", "pwd", "domain"); ChangeQuery cq = new ...
0
votes
0answers
171 views

How to insert fields of the Document Information Panel inside the body of DOTX document?

In a DOTX template document, how can I insert a placeholder for the fields in the Document Information Panel? I'm only being able to insert document properties, via the Quick Parts button. And, if ...
0
votes
1answer
406 views

Popup on Sharepoint. How to add?

I have got a question, How to add popap window to Sharepoint by the code. I tried many thinks, but they could be block by web browsers. I must find that want unblock by web browsers.
0
votes
1answer
128 views

Tutorials CAML for Sharepoint

Have You know any CAML Tutorials ? At most i would like to find any Tutorial for U2U CAML Query Builder. Please help.
0
votes
3answers
397 views

Overriding complicated javascript function

I have a some default SharePoint complicated javascript function and I'm not sure how to override it, replace it. In gerenal i know how to replace the functions, so that your implementation is called ...
1
vote
1answer
124 views

Access exceptions when trying to add a content type to list

In the following method, 'list' is simply an SPList ("Documents"). I'm attempting to add ContentTypes to the list and then update it. This code is found in the FeatureActivated event of an event ...
0
votes
2answers
232 views

Writing a ItemAttachmentDeleting in Event Receiver

i have got two Lists {"Wpisy", "Szczegoly"} And if I delete record in Wpisy I want to delete all corelate records by days in "Szczegoly", and worker schoud be the same, and Kontrakt schould be the ...
3
votes
4answers
3k views

Get SPWeb by ID without Site Collection?

I have a list of SPWeb IDs and would like to open the associated SPWeb objects. However, I do not know in which Site Collection they are (I DO know that they are in the current Web Application ...
2
votes
2answers
104 views

How to connect to the production environment in SharePoint with Visual Studio

What privileges should be set up to connect with the Visual Studio with Production Enviroment. Now I'm writing my code at SharePoint Foundation, but after it I want to migrate all to the production ...
1
vote
0answers
104 views

Editorpart positioning at the bottom

I created my own custom editor part for my web part. But when I add it to the web part, it displays by default at the top, what i would like to have is to position it at the bottom. Anyona has any ...
0
votes
2answers
56 views

Problem with two loops on rendering in calendar

I have got problem with two loops. If I adding one its good, but with more it duplikates or more the values. I put this 3 Values {1/8, 1/8, 3/8} And want to get in sum 5/8. Because 1/8+1/8+3/8 = 5/8 ...
0
votes
3answers
59 views

Adding a Sum to callendar

I want to Sum values String Values of percents{1/8, 2/8, 3/8, 4/8, 5/8, 6/8, 7/8, 8/8} which are strings. And I want to sum percent's in days. Only in this same day. I write a code, but it isn't work: ...
0
votes
1answer
84 views

Linq, how to put a indexes on Linq Query

I want to render a dates from list to the ASP Calendar. My list look like this: Kontrakt | Pracownik | Dzien | ID | Procenty -------------------------------------------- I made Linq Query, but ...
1
vote
1answer
132 views

Set PageLayout Object by Page Layout Name

I have code as part of an event receiver that creates a publishing page upon feature activation. That publishing page is built on a page layout that is deployed as part of that same feature. The ...
0
votes
1answer
428 views

CAML Query to Render a dates on Calendar

I am trying to learn CAML Queries. I must render a lot of data on Calendar. I made a code, but if it has got more then 1000 elements it's doing very long about 4-5 seconds. It's longer then adding to ...
0
votes
1answer
391 views

importing a site to a new site collection error

I tried using STSADM to export / import a site definition, it exported properly, but when i tried to import it, it gave me fatal error that couldn't find a webtemplate #id** with LCID 1033, both ...
2
votes
1answer
211 views

Getting Web Template using Configuration ID

I am able to get Web template by checking its ID, but we have ten's of web configurations within a web template so in short we have loads of web template id's with different configurations and Title. ...
1
vote
2answers
165 views

Is there anyway I can find out if user uploaded multiple items in ItemAdded Event

I have a "ItemAdded" event, I want to check Number of documents uploaded if a user uses "Upload Multiple Documents" for uploading. Normally what happens is when a user adds a item they are taken to ...
2
votes
1answer
376 views

Does anyone know how to create a sharepoint search alert using c#?

i need to develop some sharepoint search alert related werb part and would be grateful if anyone who has previous knowlenge in this area share code snippets or sights where i am guided. Thank you.
1
vote
1answer
937 views

Lookup column of type “User” showing #ERR

I've defined two list definitions and instances in a feature in VS2010. One list only contains a required field "Employee" which is of type User. The second list has two fields, a simple text field ...
0
votes
1answer
84 views

Getting resources in a Visual Webpart

I want to get resources that are kept at directory in my visual webpart "User Control" for SharePoint 2007: C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\Resources At the ...
1
vote
1answer
36 views

CurrentUser.Name different on dev to test?

Locally (during development) CurrentUser.Name brings back a nicely formatted first name and surname: "Dee Mac". On test it brings back "DOMAIN\DeeMaC". Is there anyway I can ensure I'm gettin a ...
3
votes
4answers
6k views

Loading jQuery in the Correct order

I wish to use a jQuery plugin in SharePoint. Currentley I have jQuery added to each page via a custom master page. <script src="/Style Library/js/jquery-1.6.4.min.js" ...
0
votes
2answers
57 views

Not able to add webpart to page using chrome

I created a visual webpart for SharePoint 2007, now I am able to add it to page using Internet Explorer but when I try to add it to page using chrome it doesn't add it or do a page refresh, I followed ...
1
vote
2answers
592 views

Is it possible to display the FieldRenderingControl of a FormField without providing a ListId?

Is it possible to display the FieldRenderingControl of a FormField without providing a ListId? I'm creating a dynamic form based off of a content type. Most of the time the data from this form will ...
2
votes
1answer
811 views

Sharepoint 2013 Community site: Get values from “Discussions List” list

Im trying to get values from "Discussions List", When I tried to get the values of "Body" field from that list its giving only the values of the replies of discussion. I couldn't access the values of ...
0
votes
1answer
69 views

Pro grammatically adding choice field with another field relation

sorry about the title am not sure how i should name it. I want to be able to create two columns for a list that have a division - subdivision relation. If in the first field if i choose People the ...
2
votes
1answer
254 views

Can't find a site column that DOES apparently exist

Well I've deployed a site column from my xml definition and upto now it's been fine. I then checked my content type (after some unexpected errors) and it's removed itself from the content type and is ...
2
votes
3answers
4k views

How to find the SiteCollection created date in Sharepoint 2010?

I want to find the sitecollection created and last content modified date in Sharepoint 2010, found a SPSite property for last content modified date however could not find any clue to find the created ...
0
votes
1answer
286 views

Possible to programmatically force timer to run?

I've exposed some 'rename metadata term' functionality to the user through an application page. It works fine, but they obviously don't see the changes until the 'Taxonomy Update Scheduler' has ran - ...
2
votes
1answer
269 views

Should we use web service lists.asmx over CAML when working with large lists

There is a list that has around 100k items in a SharePoint Site Collection. This site has been customized to serve certain business requirements through visual webparts. While, regular CRUD ...
0
votes
1answer
883 views

How to create a new FBA user programatically using VS 2010?

I am looking to create a new FBA user (explicitly) in the membership db using the membershipuser create user programatically. The purpose is to test permissions using the spfarm account. What is ...
0
votes
1answer
54 views

How to specify the name of a ContentType in code for multi-language site?

according to the documentation I can do: <ContentTypeID="0x01000188a30d01ae4607bbe5800bbbaf2550" Name="$Resources:LocalizeContentType,ContentTypeTitle" .... However I seem ...
1
vote
1answer
652 views

How do I rename a metadata term in C#?

Can't find this documented anywhere. Do I just change the Term.Name and run a commit all on the term store?