Welcome to DetlefGrohs.com Sign in | Join | Help

Tuesday, September 25, 2007 - Posts

How to Make a Field Read-Only in SharePoint 2007 Code Snippet

The following code snippet will make a field appear read-only in SharePoint 2007. The field will appear on lists and view forms, but will not show the field for editing on new or edit forms. SPList list = spweb.Lists["MyList"]; SPField
posted by detlef | 0 Comments
Filed Under:

SharePoint 2007 Web Part Property Attributes Code Snippet

Here is an example of the attributes need to make a property for a Web Part appear properly on the tool pane in SharePoint 2007. [WebPartStorage(Storage.Shared), WebBrowsable(true), Personalizable(true), SPWebCategoryName("MyCategory"), WebDisplayName("My
posted by detlef | 0 Comments
Filed Under:

My Blog is Dead

Based on Scott Hanselman's post A Blog's Heartbeat my blog's heartbeat has been 0 for a while. I recently made the decision to post more and update it often with what I am learning each day. Update: I should have modified the pulse graph above to be
posted by detlef | 0 Comments
Filed Under:

GetStringResource Code Snippet

I use the following method a lot to load an embedded resource from the current assembly as a string. I use variations on this for other types of resources such as images and XML documents. private string GetStringResource(string resourceName)
posted by detlef | 0 Comments
Filed Under: