Questions tagged [web-parts]

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

1693 questions
3
votes
3 answers

WebPart security

What is best practice to ensure only the correct users can see a webpart in Sharepoint 2007? Security Groups, and Audiences have both been suggested to me.
Bravax
  • 10,453
  • 7
  • 40
  • 68
3
votes
1 answer

Persisting sharepoint EditorPart settings

Inheriting from the System.Web.UI.WebControls.WebParts.EditorPart class I have been shown that it is possible to expose a public property in your VisualWebPart that when updated through the EditorPart will be automagically persisted in…
Maxim Gershkovich
  • 45,951
  • 44
  • 147
  • 243
3
votes
4 answers

Adding a required field validator to a SharePoint webpart

I am writing a webpart for MOSS 2007. I need to validate a text field in that webpart, or which I am using th required field validator. I am creating the required field validator as follows: vldProjectError = new…
ashwnacharya
  • 14,601
  • 23
  • 89
  • 112
3
votes
1 answer

SharePoint Web Part Custom Properties Don't Take Effect Until Page Reload

I am developing a sharepoint 2007 web part that uses custom properties. Here is one: [Personalizable(PersonalizationScope.User), WebDisplayName("Policy Update List Name")] [WebDescription("The name of the SharePoint List that records all the policy…
3
votes
2 answers

multi line text box in sharepoint web part

How can I display a field that is a multi line text box in a sharepoint webpart? when i click "modify shared webpart" on the webpart i would like the text field to me a multi line box thanks
raklos
  • 28,027
  • 60
  • 183
  • 301
3
votes
4 answers

Why does RunWithElevatedPrivileges fail to execute?

I'm trying to make a web part that greps user comments and stores it in custom list, I wrote this code to add a list to the site once the web part added to the page, [Guid("c314a0e8-0210-4064-b79e-bfd3594c6083")] public class CommentWriteSpace :…
netseng
  • 2,226
  • 6
  • 24
  • 28
3
votes
1 answer

Multiple webparts and ribbon in SharePoint

I am associating ribbon to my webpart. I have a need to add more than two webparts in a page. I do not want to have a separate contextual group/tab for each webpart. Is there a way to check if a specific group/tab exists in the current ribbon on the…
Moon
  • 33,439
  • 20
  • 81
  • 132
3
votes
0 answers

Sharepoint webpart connection breaks

I have a webpart with a gridview, and when I select a row on the grid. The ID of the item contained in the row is sent to another webpart in a connection. The other webpart then displays information based on the iD. The receiving webpart is using a…
Moulde
  • 3,438
  • 4
  • 29
  • 38
3
votes
1 answer

Add webpart to default WSS page via feature

I've developed a custom web part. I would like to create a feature that when activated via STSADM adds the web part to the default page of a WSS Site. Hopefully this can be done without writing code. This webpart is meant to de deployed to the…
Jason
  • 15,915
  • 3
  • 48
  • 72
3
votes
2 answers

SPFx webpart in MSTeams Desktop Client throws an UnauthorizedAccessException

This question is very similar to a question which has been asked previously on StackOverflow. However, the error I'm getting is different. AadHttpClient fails when loading SP page with SPFx webpart in MSTeams Desktop Client I also have a Sharepoint…
3
votes
4 answers

SharePoint Webpart deserialize error

I am getting a random web part error, it works one refresh and then not the next: Web Part Error: One of the properties of the web part has an incorrect format. Windows SharePoint services cannot deserialize the Web Part. Check the format…
Jimmmy
3
votes
1 answer

How to create a editable property on a SharePoint 2010 Sandboxed Visual WebPart

I am developing a sandboxed visual webpart using SharePoint 2010 in Visual Studio 2010 with the SharePoint powertools installed. The webpart deploys and works as expected, except that the properties are not editable. I believe that the core…
Daniel
  • 3,021
  • 5
  • 35
  • 50
3
votes
3 answers

How to get user rating programatically in Sharepoint 2010?

So I have enabled Ratings in Sharepoint 2010 for a Document Library following this guide: http://weblogs.asp.net/bsimser/archive/2009/10/19/sharepoint-2010-what-s-new-ratings-spc09.aspx Now I need a way to get the ratings programatically in a…
empz
  • 11,509
  • 16
  • 65
  • 106
3
votes
1 answer

modular programming in ASP.net

I don't know whether usage of the term 'modular programming' as the topic title is correct or not. I'm developing a website application which consist of different parts such as: Registering information Editing information Changing user password…
Raymond Morphy
  • 2,464
  • 9
  • 51
  • 93
3
votes
2 answers

WebPart RenderControl doesn't render contents

I have a custom web part that I am trying to call the RenderContents method on, but the results only contains the surrounding div for the web part, and not any child controls. Take for example this simple web part: namespace MyWebParts { public…
TehOne
  • 2,569
  • 3
  • 26
  • 36