webparts

How to license a sharepoint solution?

Let's assume that you've created a SharePoint solution - a WebPart, a feature for a List Template, whatever - that you are planning to sell as a product. How would you go about handling licensing of your solution? I'm looking for some input in at least the following areas: Code-wise: 1.1. Where do you keep the license itself? as a f...

how to do the webpart to list the items(doc,lib) available in current site in sharepoint 2010

How to Create a webpart using client object Model and get the current site,loop through the List and Libraries get the documents which are uploaded by today & yesterday ...

SharePoint 2007 web parts integration with Project Server 2007

To my knowledge, web parts have the ability to display portions of other Web pages. Is it possible to integrate SharePoint 07 with Project Server 07 and display portions of a Web page from the Project Server via a web part that's on a SharePoint site. If it's possible, how difficult is it to do? I found these pages (Integration with Of...

Error Code: 3604 when deleting file from SharePoint Document Library

I'm developing a WebPart in SharePoint 2007 and sometimes when I try to delete a file from Document Library with code like this: SPWeb web = SPControl.GetContextWeb(WebPart.WebPartContext); SPList list = web.GetList(web.Site.Url + "/ListName"); SPFile file = list.GetItemByUniqueId(new Guid(fileId)).File; file.Delete(); I get follo...

help for creating web part for refreshing page

Hi , I'm fairly new to Sharepoint 2007 , I use a content editor webpart for refreshin page in sharepoint portal. i use following code in Source Editor of CEWP: <script type="text/javascript" language="javascript"> var reloadTimer = null; var sURL = unescape(window.location.pathname); function setReloadTime(secs) { ...

Guide me to do recent activity web part in sharepoint 2010 using client object model.

how to add the toolpart where user can specify Multiple no of sites. using client object Model get the configured site details, Show only custom list & libraries, Get only the Last 2 days created & Modified Items details ...

How to get Webpart list in asp.net form

my intention is to get webpart list attached in asp.net page. In sharepoint web page, we can do like this : SPWeb web = SPContext.Current.Web; SPLimitedWebPartManager webPartManager = web.GetLimitedWebPartManager( Page.Request.Path, PersonalizationScope.Shared); for (int i = 0; i < webPart...

I need to list out the Custom list and library from SharePoint Site?

I need to list out the Custom list and library from SharePoint Site? How to identify the content is comes under the custom created? ...

How can I share a single set of configuration values amongst all instances of my Sharepoint Webpart?

I have a sharepoint webpart that will exist on many pages. The webpart has a custom editor control that I have developed to present the configuration options to the user in a more friendly manner. Although there will be many instances of the webpart I require that each instance has the same consistent set of property values. Is there...

Creating Sites and WebParts - SP2010

Hi, We are working on a SharePoint Site where we have created lot of webparts. Now so far we have been creating SitePages for these webparts manually and adding webparts to those. It takes lot of time in any environment and its difficult to move from environment to environment. What is the ideal way of doing it? How can we automate sit...

Content Editor webpart is causing issues with post back to a checked out page

I am using Content Editor webparts (ootb) on a MOSS page. When the author's need to change content, they check out the page to get access to the web part editing menus, and then open the ootb rich text editor. However once they make their changes and click ok, the page tries to refresh. At which point SharePoint steps in and warns the us...

Custom XSL stylesheet rendering for a XSLTListViewWebPart in SharePoint 2010

Hi, How can I apply the custom XSL rendering for the XSLTListView web part in SharePoint 2010? So, for example, I have a list of "Employees". Here is the list of columns I have for this Employee list - Full name, Job Title, Team, Contribution, Project. For this list I have created a new "List View" which has a grouping by Job Title. ...

How to get the current web using client object model?

i tried to get the current web using client object model. i am not able to get that..please guide me to find it I tried with the below code its not working.. ClientContext context = new ClientContext(ApplicationContext.Current.Url); ...

Implementing Webparts personalization without Membership provider.

Hi, I want to implement webpart personalization. But I have existing structure for login and role. So, I can not use default personalization (membership). Is it possible to implement webpart personalization without using default membership and role provider? Please share your idea regarding this. Thanks in advance, Naresh Goradara ...

SharePoint 2010 Filter Web Parts

I cannot seem to get the SharePoint 2010 Filter Web Parts to display. I tried enabling the SharePoint Server Enterprise Web application features at the Site Collection level (Central Admin - Manage Web Applications - Select Web Application - Manage Features - SharePoint Server Enterprise Web application features - Activate) as well as a...

Using SharePoint's Data Query Webpart to link two lists

I have two SharePoint Lists: A & B. List A has a column where the user can add multilple references (displayed as hyperlinks) for each entry to entries in B A: B: ... | RefB | ... Name | OtherColumns.... ----------------- ----------------------- ... | B1 | ... B1 | ......

ASP.NET WebPartManager moving web parts

I have an asp.net page using the WebPartManager. It has nothing to do with SharePoint. I have a list of web parts and users can add/remove/edit/move/change chrome color etc. They have 2 WebPartZones to work with. All the settings per user is saved in WebPartPersonalization store. This has been out there for a long while and users have be...

ASP.NET 4.0 - Hosting a ReportViewer control inside a Web Part control

Hi, I have a series of reports designed in Reporting Services that I'd like to make available through a single ASP.NET web page. I plan to make the reports available via the ReportViewer control. Unfortunately we don't have SharePoint available and my company isn't looking to buy it - so I'm stuck (I believe) with this method. Is it po...

Get logged on user on external Sharepoint Web Part

Lots of places use sharepoint. How can we securely retrieve the logged on sharepoint user when they view our app inside a web part? ...

copy webpart page (aspx page) with web parts

I have a web part page "DocLib1.aspx" in document library "DobLib1" and it has few webparts. How can I take the same web part page and copy it to other document libraries (there are about 50+ document libraries). The web part page is named after the document library (with aspx extension). One of the web part is the list for the same doc...