Web part question in 2007
- From: "JC" <droolindude@xxxxxxxxx>
- Date: 1 Nov 2006 05:26:59 -0800
Hi there.
I have developed a simple web part that I am running in 2007. It's
basically just a simple list box (for now) but it is working ok.
The problem comes when I want to add a custom property to the web part
- that the user will be able to modify by clicking "Modify shared web
part". I have created the public property in code. Problem is, when I
try to tag the property to register it as a Sharepoint property.
If I tag it with the old Sharepoint 2003 attributes (from the
Microsoft.Sharepoint namespace), the web part works but my property
doesnt show up. If I just tag the property with attributes from the
System.Web namespace (WebBrowsable and Personalizable) I get an "Unable
to import web part" error when I try to register the WP in Sharepoint.
I have tried assigning the property to a different category, I have
tried changing
the name of the property, I have tried inheriting the web part class
from either
Microsoft.Sharepoint or System.Web.UI namespaces - nothing appears to
make a difference.
Any ideas?
.
- Prev by Date: Re: Registering Custom Http Handlers (2)
- Next by Date: Re: Databind DataGrid
- Previous by thread: Re: Registering Custom Http Handlers (2)
- Next by thread: Get content field value in script block ??
- Index(es):
Relevant Pages
|