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

learn more… | top users | synonyms (3)

4
votes
4answers
3k views

SPItemEventReceiver ItemAdding - Differentiate between a file and a folder

I've setup a custom event receiver. The purpose of my event receiver is to stop people from uploading any file type except PDF's. Right now my code looks like this: if ...
1
vote
1answer
39 views

Team Fundation Server and programing in Sharepoint

If it is posible to Integration programing in Sharepoint with Team Fundation Server ? Can it be made in server and trying to run projects from TFS ?
1
vote
0answers
97 views

Securing Individual Methods on Custom Web Services in SharePoint

I've created several WCF services USING CKS:DEV to be hosted in SharePoint and accessed on SharePoint pages using SharePoint. I'm using the MultipleBaseAddressWebServiceHostFactory for hosting purpose ...
0
votes
0answers
58 views

How to run a Modal popup, or javascript popup when some change in code

I want to execute a warning popup from a webpart when the value is out of range. pop up must be created by the code behind
1
vote
0answers
365 views

Content Types not visible under New Button

I have a Sandboxed Custom Action for SharePoint Designer that can add Content Types to Document Libraries. The problem is that it does not automatically add it under the "New Document". It's not ...
1
vote
2answers
80 views

How can one reset themes as they are changed?

Is there any way of catching when a theme is being changed -- so that I can fire a ThmxTheme.RemoveThemeFromWeb? The option to change the theme is currently hidden in our farm, but we can't disallow ...
0
votes
1answer
61 views

2007 vs 2010 Core API differences

As the title says, im trying to find out how different the core api's are between sharepoint 2010 and 2007. dont care about packaging etc
2
votes
2answers
98 views

File size limit for a document in SharePoint is actual file size or file size on disk

The file size upload limit for a document is 50mb by default but is it file size of the document or file size of document on disk.
0
votes
2answers
226 views

How many element can List have to work effectively

I must do a project with 360000 element's on list. Are the list can geret with it ? How make fast a queryes on the project ? Where shall I put indexes, and should I made a orderby on Query CAML? ...
0
votes
1answer
224 views

How to Integrate STSADM command within Windows Form App

I am developing a Windows Form Application which will have one option as "Export a Site" and another to "Import a Site" I want it to be done using following STSADM commands but not sure what I need to ...
0
votes
1answer
32 views

How to backap a list with a dates older than a half of Year

I want to backup a list when a dates are longer then one half of year. How can I do it on list? I have got a list: Contract | Worker | Day | Percent ...
1
vote
1answer
125 views

How to prevent alerts from SPEmailEventReceiver?

I have been struggling with a small but irritating problem for a while now and suddenly I ran out of ideas. I have implemented an email event receiver in Sharepoint 2010. The event receiver creates ...
1
vote
1answer
1k views

Why we shouldn't use SPWeb witryna = SPContext.Current.Web;

How should change a code to use another conect to site in Sharepoint. Which code, to change SPWeb witryna = SPContext.Current.Web; Here is my examplary code: protected void ...
1
vote
3answers
2k views

How do I get all list views by using a web service?

I'd like to get all list views via web service using C# code, containing the columns: modified by created by subject body id created modified How can this be done?
0
votes
1answer
73 views

How to change a production url in the Visual Studio

I projecting site local on Sharepoint Fundation. Now I would like to change the enviroment to the productive server. How change url to deploy Solution?
3
votes
1answer
406 views

Set a date/lookup in ListInstance elements.xml

I have two lists. The first one has customers and the second one has Orders. Now i want to add some (test) data in the elements.xml of the listinstances. For customers this works without a problem ...
1
vote
2answers
100 views

Confirmation Box while Item Adding event Moss

I need a confirmation box for Item Adding event on a custom document library, can someone tell me what would be the best way of doing it using C# or I don't mind using jQuery/Javascript plugin either. ...
0
votes
1answer
162 views

Refresh Site from Adding Item

Hello I tried refresh Site from Adding Item, but if I try too Use SPUtility.Redirect("http://gzawistowskilap/SitePages/Event.aspx", SPRedirectFlags.Trusted, current); it's giving me a error which in ...
1
vote
0answers
97 views

SPListItem.Tasks always empty

I have a custom sharepoint (2007) list (named testlist) on which I attached a test workflow (built with sharepoint designer 2007 and named testwf), which only task defined in the 'Actions' section at ...
-1
votes
1answer
3k views

Modal pop up in Sharepoint

How to create modal popup in Sharepoint I want to put 3 or 4 times java script promth or alerts in the site. How should I made them ?
0
votes
1answer
123 views

Simple permissions question

I know how to grant someone certain role to a list (contribute or read for example) using C# such as: SPRoleAssignment userRoleAssignmentCont = new SPRoleAssignment(allUsers); ...
0
votes
1answer
424 views

Hide a Site Column in NewForm and EditView

I have created a custom site column. I have added this to my custom content type that inherits from the document content type. I wish to hide a field on the edit and new forms. I have the following ...
0
votes
1answer
273 views

Custom Actions all document libraries

I want to develop a "Custom Action" for all of document libraries in a site collection, I tried looking on Google but couldn't find any relevent tutorial. Custom action has to be in "Actions" and ...
0
votes
1answer
33 views

uploading a document to one location and have it replicated on other sites document library

What would be the best way of uploading a docuemnt to one location and have it replicated on other sites document library. I know I can use workflow, event receivers but then there will be ...
1
vote
1answer
58 views

Include in SharePoint 2010

I have a custom HTML menu in my MasterPage. I would like to have it in a separate file so it can be easier to update. Is it possible to do an Include?
1
vote
2answers
1k views

How to programmatically create editable wiki pages within the Pages library of an Enterprise Wiki site

I'm new to SharePoint. I'm trying to programmatically create a wiki page within the Pages library of an Enterprise Wiki site in SharePoint 2010. Here is my code: using (SPSite site = new ...
0
votes
1answer
174 views

User's Alerts always null

I've set the user alerts fine (I've even checked through the UI that they're there). But when it comes to accessing these Alerts the collection is always null: I understand that the SPUser must be ...
0
votes
1answer
113 views

Method not found after adding code class to SharePoint Web Part

I'm creating a SharePoint Web Part that displays list items. To display these items I am using an asp:ListView and <%#Eval() %>. I needed to change the output of <%#Eval() %> so I added a ...
0
votes
2answers
371 views

Problem with connectivity and OWSTIMER.exe

Our stagging environment is on a single server with 3 virtual servers, Database Server K2 Workflow Server WebFrontEnd Server Now time to time I am getting this exception for a webpart in event ...
0
votes
1answer
478 views

Showing the tab on button click

Basically my questiong is regarding the ribbon. So I want to have the following behaviour, when a person clicks on the button, the contextual ribbon tab should be opened. Any idea how to do that? I ...
1
vote
1answer
82 views

Why FileNotFoundPage is null or is null by default

I just tried to access property "FileNotFoundPage" for a web application and its coming up as null, I wonder if its null by default or if something changed it to null. I would also like to know what ...
2
votes
1answer
157 views

SharePoint 2010 404 status behaviour

When you create a new webapplication, the FileNotFoundPage property is empty. When we do a request to a non existing page SharePoint gives a default 404 status on the page that is not found. The url ...
-1
votes
2answers
85 views

Why always when I use data Veriable in Sharepoint I must Adding o Hours to it's

Why when I Adding a Data Veriable I must correct them by adding some hours to them. When I using ToUniversalTime().AddHours(2.0) i must add a two hours, and if I using ToLocalTime().AddHours(-1.0) I ...
0
votes
0answers
78 views

How in CAML Query should I exchange e.Day.Date.ToLocalTime() by the Textbox.Text with date string

how can I exchange e.Day.Date.ToLocalTime() by the Textbox.Text value. I have this code: string FullQuery = "<Where><And><Eq><FieldRef Name='{0}' ...
0
votes
1answer
529 views

Sharepoint 2013: Get url of discussions in Discussions List

Im working on Sharepoint 2013 Community site, Im developing a custom webpart where I filter the discussions and displaying the title of the discussions as a Hyperlink. How can I find the url of the ...
-1
votes
1answer
83 views

Problrm with redirect in Items Adding

I put in items adding this code: SPUtility.Redirect("http://gzawistowskilap/SitePages/Event.aspx", SPRedirectFlags.Trusted, current); If I try to add something a error shows: The Ribbon Tab with ...
0
votes
1answer
53 views

Update Panel and listing items

I have got a code, on procedure Button_Click: protected void Button2_Click(object sender, EventArgs e) { using (SPWeb witryna = SPContext.Current.Web) { ...
-1
votes
2answers
50 views

Add a lookup fild by the bottom Click, not from Adding Item

Hello how to add to the value by bottom click not from the Adding Item. Only from code: protected void Button2_Click(object sender, EventArgs e) { using (SPWeb ...
0
votes
1answer
743 views

Select a ribbon tab Ribbon.read with a button

My question is simple: How do I select a ribbon.read with javascript? For example i have a different tab selected but clicking on the button i would like to select Ribbon.read ... any adivces? ...
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
48 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
417 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
137 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
64 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
35 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 ...