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

learn more… | top users | synonyms (3)

3
votes
1answer
2k views

How to get the current site url in sharepoint

How to get the current site url in sharepoint, I am using SPContext.Current.Site.Url but this returns package site url, if i create a new site in existing site and activate my feature in it, and call ...
3
votes
2answers
877 views

Logging into SharePoint through C# programatically

I am trying to login programatically to a SharePoint app and get the HTML code of specific page within that website. Is there a way how I can do that programatically? I am having problems with the ...
3
votes
3answers
2k views

Automatically add pssnapin Microsoft.Sharepoint.Powershell

I am developing in Sharepoint and I like more Windows Powershell than Sharepoint Management Shell. Every time I restart the development machine, I have to run Add-PSSnapin ...
3
votes
4answers
2k views

Change default welcome page

How to do the following but with code? my page name is actnow.aspx click the "Site Actions" menu bar, select "Site Settings" and then click on "Modify All Site Settings". Under the "Look and Feel" ...
3
votes
1answer
238 views

SharePoint 2010 development practices

We are a group of ASP.NET developers who are new to SharePoint and we are starting fresh from SP 2010 with no prior experience with 2007. I am trying to figure out how to implement the SW development ...
3
votes
5answers
2k views

Disposal of SPWebs created using SPSite.OpenWeb()

After reading some answers/comments on Disposal of SPWebs retrieved from SPContext.Current.Site.AllWebs, I opened up Reflector to dig deeper into the SPSite and SPWeb classes. I ran into a surprise, ...
3
votes
3answers
844 views

How to create Site (SPWeb) on Sharepoint Online

I have a problem creating Sites on Sharepoint Online. The code that works on-premise do not work on Sharepoint Online. I do not want to bother you with the code, i just want a clean start. So my ...
3
votes
1answer
256 views

Share Point Timer Job Not Executing Code In Overriden Excecute Method Of SPJobDefinition

My goal is obviously to exceute some code periodically through SharePoint and I cant get it to work correctly. I started off by creating an empty sharepoint 2010 project(farm solution). Then, I added ...
3
votes
4answers
7k views

Error occurred in deployment step 'Activate Features': <nativehr>0x80070002</nativehr><nativestack></nativestack>

I have a feature. On the FeatureActivated event I am creating a list if it is not there. I also have an EventReceiver that in the elements.xml on the Receivers node has the attribute ListUrl. This is ...
3
votes
1answer
609 views

how to check if a webpart already exists on a page or not

I am adding three webparts with different titles to a given page url, but I need to check if webpart is already on page or not, here is the code i am using atm to add webpart to the page. using ...
3
votes
2answers
221 views

What's the preferred way to cache .NET objects in SP Foundation?

I have a SharePoint 2010 Founation (farm) solution scoped at the site collection level. What I'd like to do is cache some of my custom .NET objects so that the page requests can be processed faster. ...
3
votes
1answer
176 views

Development environments offered from the cloud

Would cloud based development servers be a valid alternative for local development environments? The cloud based dev environment might consist of a separate physical SQL server, and a SP dev image ...
3
votes
1answer
55 views

Adding files to a deployed feature

How do you add new files to a feature that have been deployed? Are there any gotcha's that you need to worry about?
3
votes
2answers
320 views

Deploying a Web Part to a single Site Collection using WSPBuilder

I am working with Visual Studio 2008 with the WSPBuilder add-in, and WSS 3.0. When I create a Web Part feature and deploy it to my SharePoint site, it is available to every site collection in the web ...
3
votes
4answers
10k views

Error message: “A sharepoint server is not installed…”

Im trying to develop a Visual Web Part using Visual Studio 2010 RC. I have not installed SharePoint 2010 locally on my developer box, but I have installed it on my Windows 2008 Server VPC. When I try ...
3
votes
2answers
95 views

.NET forms for SharePoint 2010 without InfoPath

Afternoon all, Can anyone advise if it's possible to create forms for SharePoint 2010 Standard (to submit to a list) without using InfoPath? My version of the product doesn't have InfoPath Services. ...
3
votes
1answer
650 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 ...
3
votes
2answers
2k views

How to upload/download document to Document Library via WEBSERVICES? Also set metadata

I want to retrieve a template document from a Document Libraries, in order to allow a user to edit it, and then upload it back again to the Document Library. I'll probably need to set some metadata ...
3
votes
2answers
297 views

Content Deployment and Migration API not importing no error thrown

The following http://blogs.technet.com/b/stefan_gossner/archive/2007/08/30/deep-dive-into-the-sharepoint-content-deployment-and-migration-api-part-4.aspx provides the follwoinf code to import and ...
3
votes
2answers
2k views

Copy file to sharepoint

Below is my method which is meant to copy a file from a folder on my desktop to the sharepoint document library shared documents. Its giving me error on SaveChanges method call, error shows me this ...
3
votes
2answers
324 views

Regex Query Against FAST Search 2010

I'm looking for a way to do searches with FAST Search Server 2010 based on Regular Expressions. For instance, I'd like to be able to use: ^\d{3}-\d{2}-\d{4}$ And have it return any content ...
3
votes
4answers
3k views

Users denied access to site, but have proper permissions

I have looked through the various "similar" questions to this and haven't found a solution. Basically I have a SharePoint site that all users have access to correctly. The users can view this fine, ...
3
votes
1answer
335 views

Deploy an image in a feature

I am creating a feature which adds an option to the ECB. I want to have a custom icon/image. In my Visual Studio 2010 project I have created a TEMPLATE/IMAGES/proj folders. I have added my image to ...
3
votes
1answer
144 views

Can document views/metadata be 'live'?

We have a need for end users to see documents with additional 'live' columns, i.e. I would like to show a view of documents with employee id JOINED with data from sql server (for some additional ...
3
votes
1answer
982 views

Add users to the site collection administrator group through code

You can add users to the site collection administrators group through Site Actions ->Site Collection Administrators (and add users) But how can you do this through code? What is the grpName? ...
3
votes
1answer
136 views

Time conversion via ClientContext

In native SP list I have item with datetime field which shows 24.1.2010. 00:00:00. When I try get it with ClientContext, I got that item field with the time 23.1.2010. 23:00:00. I understand that ...
3
votes
2answers
285 views

Using a shared DAL class library solution for a SharePoint farm

I was wondering what your thoughts were on a shared data access layer in a SharePoint farm. I am well aware of the implications of accessing the SharePoint content databases directly - I am referring ...
3
votes
4answers
1k views

Best way to get CAML for a custom content type

I am trying to get the CAML for a custom content type that I am creating. What I am really doing is creating the content type in Visual Studio 2010 and then deploying that content type to my sandbox. ...
3
votes
2answers
184 views

How can I create a web part for add update and delete operations?

I'm new to SharePoint and I'm working with web parts. I have learned how to create a basic webpart and how to deploy it...but I don't have any ideas about how to create a web part that adds updates ...
3
votes
2answers
118 views

How to Use a AjaxScript Manager on ASP.NET 3,5 to add AjaX control Toolkit Script Manager

How should I use Ajax Control Toolkit in Sharepoint 2010. When I add Extender Calendar don't Shown. I tried add AjaxToolkitScript manager, but it's vrite me that it shouldn't be there 2 Scripts ...
3
votes
1answer
809 views

What text type are multi line text columns in SharePoint lists?

When accessing a multi line text field from a SharePoint item in a list, what is the text type returned? Using C#: item["Description"].ToString() Is the above plaintext or html or...? I want to ...
3
votes
1answer
1k views

SPFolder vs SPListItem

I've trying to build a tree view which will show a Sites Lists and folders. This is an external application so I have to communicate with WSS3 through web services. Site |-List | |-Folder | ...
3
votes
2answers
176 views

How to programmatically detect if a solution is deployed?

Situation: There's a sharepoint farm with ~60 solutions. On some not specified time someone can deploy a new /update an existing solution to this farm. Everytime a deployment is successfull I need to ...
3
votes
1answer
108 views

Activating programmatically custom script on page load

I have small problem. The thing is I need to have a method on page load that will execute one script only if web.allProperties has one property, but I dont know how to call that script? So this is ...
3
votes
1answer
101 views

Has Microsoft discussed whether future versions of SharePoint will support MVC?

I haven't heard anything about whether they will be including this in the future or not. I did some Googling and found an interesting project on CodePlex but did not find anything official from ...
3
votes
2answers
1k views

SP 2010 Custom Access Denied Pages - 403 error

I've used the following powershell script to change the default access denied page for my web Application: Set-SPCustomLayoutsPage -Identity "AccessDenied" -RelativePath ...
3
votes
1answer
439 views

In SharePoint 2010 how can I add user selected WebParts at run time?

I am quite new to SharePoint and have been given an interesting problem to solve. My users have requested to each have a custom home page that they can customise with ease. The design I have been ...
3
votes
1answer
66 views

Template usercontrol hide based on page

Is it possible to hide a usercontrol that I have added to a custom template based on what page I am on. I have several pages that use the template but I only want one page to display the control the ...
3
votes
2answers
224 views

Sharepoint application with offline support

I want to create an application (C#) that can work with Sharepoint in offline mode (read/add/modify documents) and sync with the server whenever a connection is established. What is the best solution ...
3
votes
2answers
739 views

FBA custom login page - membership provider returns “The method or operation is not implemented.”

My SP web application use FBA authentication (AD and aspnetSQLmembership providers). I want log in to SP site from custom SP login page. In code-behind page (my class inherit ...
3
votes
1answer
515 views

SPLongOperation never ends

I have an SPLongOperation that occasionally fails to redirect the user to a new page when the operation completes. I'm not sure what circumstances cause the problem, since I don't yet have a reliable ...
3
votes
3answers
106 views

SharePoint Training - 2007 or 2010?

We have SharePoint 2007 and hope to migrate to 2010 sometime. If I take 2010 will the stuff I learn work on 2007 or should I take 2007? I am wanting to learn the back end. Creating Web Parts, etc. ...
3
votes
2answers
2k views

How to flush object cache in SharePoint programmatically

In SharePoint we can clear the object cache from Site Collection Administration - Site collection object cache Is there a way to do the same programmatically?
3
votes
2answers
139 views

Reducing amount of clicks to create Publishing Page in SharePoint 2007

I have a customer who is using the MOSS 2007 WCM Publishing Site. To create a page in this environment you need to: Select Site Settings | Create Page Fill in: Title page url select a ...
3
votes
2answers
378 views

SharePoint 2010 how to customize display form using application page or code behind

I am working on a project that requires code behind in the dispform.aspx as well as the edit and new form. The reson being, I am synching to a web service, on view of an item, I want to make a sall ...
3
votes
1answer
140 views

Is it possible to prevent SharePoint 2010 from creating a folder structure when users upload files?

I have a wiki library with pages and a document library which I've configured to be an assets library. How do I prevent sharepoint from creating a directory structure for file uploads? The wiki pages ...
3
votes
2answers
406 views

Returning Full URL

I am writing code in my master page that examines the page's URL as shown in the browser I have a web application at URL: http://teams.sharepoint.org/sitecollections and many site collections ...
3
votes
2answers
625 views

Use SPQuery.RowLimit also on large lists with small query results?

I frequently read one should use RowLimit on SPQuerys on a large list, especially with more than 2000 items. Best Practices: Common Coding Issues When Using the SharePoint Object Model: An ...
3
votes
1answer
722 views

Can the zoom/scale on JS Grid conrol in gantt mode be changed?

I have created a webpart with a JS Grid control with gantt enabled. I want the gantt view to display months instead of weekdays. Anyone have an idea how to do this? Update: The following link is what ...
3
votes
4answers
524 views

Add a Web Part Zone to “My Newsfeed” Page via PowerShell

I've done a fair amount of looking into this idea without promising leads. Let me define my problem: I need to add a third column (as a Web Part Zone) to the "My Newsfeed" page in My Sites. The ...

1 2 3 4 5 35