Web part question in 2007

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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?

.



Relevant Pages

  • Re: Union nested in structure.
    ... specifying the tag scope rules would have been a Bad Thing. ... (And, IIRC, the single global-scope tag namespace existed in pre- ... > structures, unions and enums? ... case when you're defining one struct inside another; ...
    (comp.lang.c)
  • Namespace Qualification [was Re: Linux compiling]
    ... I'd rather use a search or search / replace facility on 50,000 lines of code ... > I haven't come across any problems so far using namespace ... In order to allow use of the same tag name to identify different ...
    (alt.comp.lang.learn.c-cpp)
  • New Release: Tag Cloud Web Part for Microsoft SharePoint 2007
    ... your data stored in SharePoint lists, ... Tag cloud is an intuitive, simple and, thus, extremely popular way ... enhanced with tagging and tag cloud features, ...
    (microsoft.public.sharepoint.portalserver)
  • Re: XML namespace / element name question
    ... > It seems that two sibling elements, which are in the same namespace, may ... > not have the same name (tag name). ... ThinFlash: Linux thin-client on USB key drive ...
    (comp.text.xml)
  • Re: Customizing the Shortcut Menu for List Items
    ... SharePoint University SharePoint Blogs SharePoint Experts ... To enable the details of this specific error message to be viewable on the local server machine, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. ...
    (microsoft.public.sharepoint.portalserver)