Questions tagged [web-parts]

Web parts are are the building blocks of Microsoft SharePoint web pages.

1693 questions
4
votes
1 answer

Asp.Net Webparts

I have been searching these forums, but also the web at large. Can you tell me if WebParts for Webform applications are obsolete? Or, can you tell me if they are only designed to work with IE specifically? I really want to integrate the webparts…
jmorrissette
  • 133
  • 1
  • 10
4
votes
1 answer

How to get current language or variation in Sharepoint (MOSS) 2007?

I would like to be able to query the current variation from within a web part or a control template so as to determine which language to use. If there is no variation then I will pick up the language from the request. Is this possible?
paul
  • 13,312
  • 23
  • 81
  • 144
4
votes
2 answers

Sharepoint web part for editing list items

I'm trying to create a web part that will enable users to edit items without ever leaving the AllItems.aspx page. The web part should have a similar functionality like the EditForm.aspx page. I've created a simple web part with a…
Matej
  • 80
  • 1
  • 4
4
votes
1 answer

GetUsageData() in a web part returns null

I am trying to display some SharePoint usage data in a web part. Here's my code: SPSite spSiteCollection = new SPSite(myURL) spSiteCollection.CatchAccessDeniedException = false; SPWeb spWeb = spSiteCollection.OpenWeb(); DataTable dtResults = new…
Idriss Selhoum
4
votes
1 answer

Filtering DVWP with xslt with parameter from connected LVWP in Sharepoint Designer

My setup is as follows: A custom page on a Sharepoint 2010 site with a list view web part and a Data view web part. When I select an item in the LVWP I want to filter the DVWP with a multi lookup field value. So I've connected to two web parts such…
4
votes
6 answers

ASP.NET - Add Event Handler to LinkButton inside of Repeater in a RenderContent call

I've got a Sharepoint WebPart which loads a custom User Control. The user control contains a Repeater which in turn contains several LinkButtons. In the RenderContent call in the Webpart I've got some code to add event handlers: ArrayList…
Gordon Thompson
  • 4,764
  • 8
  • 48
  • 62
4
votes
2 answers

Can I make a SharePoint Image Web Part clickable to link to another page

The Image Web Part doesn't seem to have an href attribute that I can set. Is there something I am missing?
brantcarter
4
votes
4 answers

Order of calling of CreateChildControls() and ApplyChanges() methods in a SharePoint web part

I am creating a web part for SharePoint. I have a custom editor part which is overriding the SyncChanges() and ApplyChanges() methods (among others). The problem is that when I click OK in edit mode, the page is switched to browse mode, but data…
Petr
4
votes
1 answer

Web part dll in Gac or bin using sharepoint 2007

What is best practice, in sharepoint 2007 web part deployment. Deploying the dll's to GAC or bin?
Gaotter
  • 1,746
  • 15
  • 32
3
votes
1 answer

SharePoint 2010: How to extract personalized web part property for all users

Background: I have a built-in-house custom SharePoint 2010 web part, inheriting from System.Web.UI.WebControls.WebParts.WebPart, which has a property defined like…
kbrimington
  • 25,142
  • 5
  • 62
  • 74
3
votes
1 answer

ASP.Net Webparts: How to hide a webpart?

In one of the pages in my ASP.Net 3.5 site, I need to hide a specific webpart, as it is not applicable to that page (note: the webparts are defined in the master page). I basically have three webparts within the zonetemplate contained within the…
Leigh Bowers
  • 707
  • 10
  • 22
3
votes
2 answers

Webpart "Not registered as safe" after changing AssemblyVersion

I (successfully) deployed some sharepoint2010 - Webparts using msbuild. Everything works fine until I decided to change the assemblyVersion. Whenever I do that the message Web Part Error: A Web Part or Web Form Control on this Page cannot be…
Ole Albers
  • 8,715
  • 10
  • 73
  • 166
3
votes
1 answer

How to add a webpart to a listview in sharepoint 2010?

I have to add a "Content Editor" web part to a list view. The "Content Editor" is required to implement some java script and a html textbox. The problem is that after adding the web part to the list view the dropdown to switch your current view gets…
LMW-HH
  • 1,193
  • 2
  • 15
  • 31
3
votes
1 answer

How to modify "Summary View" in SharePoint list web part?

I'm using the Announcements list on a team site and I'm displaying the list on a page using the out of the box list web part. I like the fact that the Summary View trims the body of each list item, but I would like to display an additional column…
MDRoz
  • 456
  • 2
  • 9
  • 17
3
votes
1 answer

How to leverage Custom Styles & Markup Styles in the SharePoint 2010 CEWP (100% JavaScript Solution)

In short, with a RichHtmlField we can customize which Styles & Markup Styles appear in the drop down lists on the Ribbon. Using an OOTB Content Editor Web Part we cannot. After interrogating / contrasting the RichHtmlField vs. CEWP (HTML/JavaScript…
thastark
  • 1,243
  • 10
  • 9