Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I am using SharePoint Server 2007 Enterprise with Windows Server 2008 Enterprise. I am using publishing portal template.

I am developing using VSTS 2008 + C# + .Net 3.5. I want to develop a WebPart and make some settings configurable (just like we can configure parameter for a console application in app.config) -- i.e. authorized people could set parameters of WebPart in Edit Page (from browser based UI interface), then select -> Modify WebPart properties, or edit parameter in SharePoint Designer.

Such parameter is application specific custom parameters.

Any solutions and referenced samples?

share|improve this question

2 Answers 2

up vote 2 down vote accepted

The properties should be built into just about any how to or sample project.

    [WebBrowsable(true), Personalizable(true)]
    public string DefaultText
    {
        get { return defaultText; }
        set { defaultText = value; }
    }
share|improve this answer
    
Are there a complete sample? –  George2 Jan 4 '10 at 15:49
    
Cool, question answered! –  George2 Jan 5 '10 at 4:34

last year I wrote a series on Web Part properties, might be worth a look:

/WW

share|improve this answer
1  
Nice series of articles there Wictor! :-) –  Anders Rask Jan 4 '10 at 20:36
2  
Thnx mate! Trying to get them even better in the upcoming book! –  Wictor Wilen MCA MCM MVP Jan 4 '10 at 21:40
    
Cool, thanks man! –  George2 Jan 5 '10 at 4:36
    
Sounds awesome. Any details on that book yet? –  Anders Rask Jan 5 '10 at 14:55
    
Yea sure, check my blog. –  Wictor Wilen MCA MCM MVP Jan 5 '10 at 14:59

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.