sharepoint

Deleting list items via ProcessBatchData()

You can build a batch string to delete all of the items from a SharePoint list like this: 1: //create new StringBuilder 2: StringBuilder batchString= new StringBuilder(); 3: 4: //add the main text to the stringbuilder 5: batchString.Append(""); 6: 7: //add each item to the batch string and give it a command Delete 8...

Dynamic URL for Service Reference in visual Studio 2010

I am writing a Silverlight 3 application, this app uses a service reference to connect to a SharePoint site by using Sharepoint Lists.asmx web service Now i want to install my app on different servers, and i want my app to use the weBservice of the server on which it is installed (without me specifying it). In Vs2005, we used to specify...

Is it possible to programmatically determine the type of a SharePoint object?

I'm using the SharePoint 2007 object model API to assign a role to a SharePoint object, however when you do this, you must know the type of SharePoint object beforehand, like this: // apply the new roleassignment to the folder. You can do this at the listitem level if desired (i.e. this could be SPfile.Item…. instead of SPFolder.Item...

Sharepoint 2010 - "Tags and Notes" not active

I have installed and configured SharePoint 2010 and am now testing using it. I can't seem to add a tag to anything. I can choose a specific item (such as a task), but the "Tags and Notes" button is disabled. When I hover over the button, it says I may need permissions in order to tag an item, but I'm the site admin, so I doubt that is th...

HTTP to HTTPS redirect using URL Rewrite

Following ruslany's suggestion on the URL Rewrite Tips page here, I'm trying to use URL Rewrite to redirect http:// requests for my site to https://. I've written and tested the rule using a test site I set up, and so now the final piece is to create a second site (http) to redirect to my https site. (I need to use a second site because ...

SharePoint ContentByQueryWebPart

What I want: A custom web part that queries all sites in site collection for a particular content type. Modify that result set, and use custom XSLT file in _layouts to render. Is there a way to - tell the class what site to start the query on (current or different site collection) - Specify custom xslt file to use in _layouts folder -...

ListViewWebPart problem with custom Event list template

I have copied C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\FEATURES\EventsList\Events\schema.xml into a custom list template feature. I have another feature that creates the list instance: <ListInstance FeatureId="58c1f9c9-eadb-41dd-a358-e04b2f2e30c0" TemplateType="100322" Title="$Resource...

Sharepoint calendar webpart change views

Hi there, I created a calendar list, and I added the calendar web part in another web part page. I noticed that i can not change the view without going to edit mode, then go to modify shared web part. But in the home page of the calendar. There is a same calendar web part with a drop down menu to change views. Also, there is a small cal...

How to WelCome control in Webpart code?

I need to place a webpart on the page. The webpart need to change Welcome control title. I need to change "WelCome UserName" to "UserName". I tried http://www.wictorwilen.se/Post/Having-fun-with-the-SharePoint-Welcomeascx-control.aspx , But it did not worked in Webpart. If anybody have idea to change this control. Please share with me....

asp.net sharepoint development

Hi all, Im my current project we need to interface with sharepoint to store and retrieve various documents. This has previously been done by referencing the Microsoft.Sharepoint dlls directly and going from there. As I don't know a lot about sharepoint yet I have been doing some research. Most of the examples I find actually refer to ...

Do people create and use Web Parts connections?

I've been writing some SharePoint web parts which connect (as providers and consumers). I've found many difficulties, and (comparatively*) little material from the web, from books, or from microsoft.com, which is quite surprising as Web Parts have been around since 2003. This is making me think that although web part connections look lik...

Which folder should a sharepoint custom page be deployed to ?

I have created a new aspx page and deployed to Sharepoint successfully. For the moment, the path of the page is http://MySite/myCustomPage.aspx How can I make the Path to something like `http://MySite/MyLib/AllForms/myCustomPage.aspx I am using feature for deployment. Thanks ` ...

Sharepoint Filter

Hi All, I have two lists, Status Name (string) Active (yes/no) Task Name (string) Status (Lookup to Status list) I have the following statuses (These can be changed at any time by the client): New, Active = Yes Open, Active = Yes Not Resolved, Active = No Resolved, Active = No I want to create a view for the Tasks list, tha...

How can resolve Error: "Could not load type 'Microsoft.SharePoint.WebControls.SPGridView" SharePoint 2010 ?

Following error comes when creating a WebPart In sharePoint 2010 Server. Web Part Error: Unhandled exception was thrown by the user code wrapper's Execute method in the partial trust app domain: System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.TypeLoadException: Could not l...

Bulk adding items

Present Scenario, A custom page where complaints being logged by any authenticated users are added as items to a SharePoint lists. Whenever new complaints are logged a unique reference number gets generated and the new item will get added in the one of the SharePoint lists. Each item has few columns like, the category of the complaint ...

SharePoint 2010 custom search from Layouts page

Hi, I am querying SharePoint 2010 search using FullTextSqlQuery. The query returns results as long as i run it from the webpart. However, for some reason, i need to run the same query from a custom aspx page deployed under layouts. The query returns a wcf exception. Has anyone tried running custom queries from pages deployed to layouts...

Sharepoint application not working!!

hi, I am facing a weird problem and no body seems to have a solution for it. The thing is that i am working on a Sharepoint application. It was working fine until our organization underwent a network maintenance. The next day i try to run my application and kaboom!! it throws me an error A network-related or instance-specific er...

OCS presence in SharePoint AJAX-based web part

I'm currently implementing AJAX-based web part which displays search result. This search result has user names and opposite to each name I'm rendering the OCS presence indicator. This indicator works fine in IE6 but I can't get it to work in IE7/8. Basically the problem in IE7/8 is that OCS is rendered but when you mouse over it nothing...

how to write the SPQuery for getting all data of contact list?

Hi, I am writing the SPQuery for getting the data in contact list of sharepoint site.but how to write that? Means I want to retrieve data as : Name:aaa Cell No: 13123131 Address : something address here.. so on... of given LAst Name in search text box (build by me). how to do that? Means what query i have to write? (Syntax please). ...

Sharepoint lockout

Recently a guy from our 3rd line team thought it would be funny to delete my account from AD. This has now been re-added. Everything is back to normal apart from my Access to Sharepoint sites. I am getting The file exists. (Exception from HRESULT: 0x80070050) Error on all sites. After some googleing I came across a guy with the same i...