webparts

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 of the properties and try again. The web parts have been on the site for a long time...

Silverlight WebPart in SharePoint

Hi, I'm making a WebPart for SharePoint that will instantiate a Silverlight UserControl and feed it some data. My problem is that when I have created my sample-WebPart and just instantiate a Silverlight control, the webpart, when added to a page or displayed in the webpart gallery, instead of rendering blank, renders an error page saying...

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 web application's bin directory and featurereceiver must be installed to the GAC. The AllU...

laying out a form using c# for a webpart in sharepoint

I have created a webpart in c# for sharepoint. its basically a form with text boxes, literals, validators and buttons. im not sure how to render this form to make it look pretty. The layout etc is being done entirely within this c# class. At the moment to get started im just overrinding CreateChildControls() method and adding each for...

Sharepoint custom web part property does not show up in the toolbox

I have defined a boolean property as follows: [Browsable(true), Category("Display"), DefaultValue(false), WebPartStorage(Storage.Shared), FriendlyName("Obey Workflow"), Description("")] public bool ObeyWorkflow { get; set; } I'm expecting it to render as a checkbox in the webpart's properties toolbox, however it doesn't show up...

OWA Web Part Jumps/Shifts when getting focus on My Site

In SharePoint (MOSS 2007), with an OWA web part on the page, either inbox or calendar parts, when a page loads it "jumps" down to have that part as the focus. No matter where it is on the page. Has anyone encountered this before or know how to solve this issue? This happens on out of the box sharepoint sites, with the OWA components. No...

Sharepoint webpart connection breaks

Hi 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 infomation based on the iD. The reciving webpart is using a multiview to view different types of info. What induces the error or malfunction is a l...

Asp.NET Webpart > Userctrl > ClientScript.RegisterStartupScript not working!?

I have a form default.aspx with a scriptmanager and webpart manager. I have 4 webpart zones. One of the zones has a basic user control for its content. The user control has a button inside an update panel and I have the following on the click event for the button: Protected Sub cmdMarkComplete_Click(ByVal sender As Object, ByVal e As S...

Configuring Outlook Webpart in Sharepoint 2007

I'm exploring sharepoint a bit. I would like to show the email inbox and calendar of the user logged in. The logging in of defferent users is no problem. We are running Exchange 2003 and we're using the webaccess. This works without any problems also. I added the OWACalendarPart to the default.aspx page. When I set mail server address t...

Populate user control on event raised by another user control in the same page.

In a webpart I have two user controls loaded. I want to be able to populate one of the controls when an event is triggered in the other control, a parameter has to be passed between the controls. ...

Client ID of a Silverlight Control in A Sharepoint WebPart

Background: I have a Silverlight Control in a sharepoint webpart that exposes some scriptable methods. I use those methods to call a webservice and get an array of menu options. These menu options are then injected into Sharepoint ECB menu which appears on clicking an item in a list. The problem I am having is being able to get the cli...

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 ...

using __dopostback(UpdatePanel) from a UserCtrl in a WebPartZone

I hope someone can offer a little assistance with this. I have a button which when clicked presents a javascript generated OK or Cancel. Once the user clicks on OK it fires a __DoPostBack clientside and targets an UpdatePanel which processes the postback asynchronously. I then use ScriptManager.RegisterStartupScript() and pass in a jav...

.NET One Hop Rule and SharePoint Webparts

Hi I have a SharePoint webpart which is compiled as a DLL and placed in the BIN folder of my SP site. My webpart works on my local machine, but when I put it on production it fails with a (401) Unauthorized. After doing some research I came acrooss what is known as the "One hop rule". Meaning I have to either pass in the credential...

Why would a web part fail on constructor the first time it's being added to a page?

Hello, This question is a bit specific (MOSS2007) and I don't high hopes for getting an answer, but maybe luck will smile upon me. I have a web part that works except the very first time it's being added to a page. It throws an exception inside a constructor when I'm trying to open a connection to a SQL server. The demand for the SqlCl...

Filter a Content Query Web Part using the values of another web part on the same page

I have a Content Query Web Part on my page that rolls up all the contacts lists from all the sub-webs in my site collection. this works fine. I'd like to be able dynamically filter the contacts rollup by having the user click on a list of leters of the aphhabet at the top of the page. click A and see the contacts that start with A, et...

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 RequiredFieldValidator(); vldProjectError.ForeColor = Color.Red; vldProjectError.ErrorMessage = Resources.LABEL_PROJECT_ERR...

Is it possible to obtain a reference to a silverlight's page from a WebPart?

Hi. I'm wondering how to communicate with this Page class defined in Page.xaml.cs: public partial class Page : UserControl { public Page() { InitializeComponent(); } private void TextBlock_MouseLeftButtonUp(object sender, MouseButtonEventArgs e) { if (HelloWorldTextBlock.Text == "Hello World") ...

How to implement asynchronous updates for Silverlight app from a SharePoint WebPart?

I'm trying to figure out the best way (read: the easiest) to send updates to a silverlight app from a webpart (that contains the app) asynchronously. The exact time the update would have to be sent is determined by the webpart and it is sent ASAP. Two solutions I've googled (but not fully understood) are: WCF duplex communication/sockets...

Any idea when the ASP.NET Web Part Framework will support drag and drop in Firefox?

Apparently Microsoft provided support for this in an unofficial 'Futures' release but they have yet to release this support officially. Does anyone know if this will be supported in ASP.NET 4.0? More info here http://forums.asp.net/p/1380982/2930653.aspx and http://waitink.blogspot.com/2008/06/ajax-web-parts-part-1-drag-and-drop.html ...