Everything SharePoint and XAML

My continuous learning of SharePoint, XAML, Silverlight, Windows Phone 7, Windows 8, Office, VSTO, C#…

Archive for February, 2009

Links (2/26/2009)

Posted by Steve Pietrek on February 26, 2009

  1. **** Efficient way to add a new item to a SharePoint list
  2. **** Controlling Single Web Parts with CSS
  3. **** 25 Common Design Questions
  4. SharePoint: Writing messages to ULS (Unified Logging System)
  5. What Are The Biggest SharePoint API Mistakes?
  6. Easy Way To Add Role Assignments
  7. Getting A Specific SPListTemplateType Icon
  8. Get SPGroup, If Not Available, Create!
  9. Understanding SharePoint: Event Receivers
  10. Create a simple hello world custom Application Page in SharePoint.
  11. Virtual Earth + SharePoint = Business (Location) Intelligence
  12. Integrating a Custom ASP.NET Application into SharePoint (Part 2)
  13. Programmatically Apply Theme to a site
  14. AJAX enable Zone Tabs Web part in SharePoint
  15. Best Practices disposing SharePoint objects – Reference Guide
  16. Using SharePoint instead of email attachments
  17. Options for taking SharePoint files offline
  18. Creating a Custom Web Service in SharePoint for Uploading Document
  19. Submit InfoPath form to SharePoint list
  20. Regular Expression Validated Custom SPField
  21. jQuery: the SharePoint Band Aid
  22. InfoPath and Visual Studio Workflows – 3 Great Tricks (3 of 3)
  23. Notes Field Not Getting Populated by SPUserCollection.Add Method
  24. February Cumulative Update for WSS V3 and MOSS 2007
  25. Anonymous access and SPContext
  26. Integrating Reporting Services 2008 with SharePoint 2007 Step 6 – Report Creation and Deployment
  27. When saving data into Web Part Properties, remember [Serializable]
  28. Rolling up Content Across Site Collections
  29. Workflow SPListItem modified by SHAREPOINT\system
  30. SharePoint: Access denied error when adding new page to page library
  31. Improve you SharePoint code with Red Gate ANTS
  32. Handling State Machine Workflow – Part 1
  33. Disabling Enterprise Feature Buttons
  34. The Content Query Web Part, and Working With Lookup Fields in a Custom Web Part
  35. PowerShell and Office Open XML Format Document Generation Sample
  36. More Samples Added to the SharePoint and Silverlight Blueprints
  37. Trick on how to get a Content Editor Web Part’s width to 100% when it is in a horizontally aligned Web Part Zone
Advertisements

Posted in SPLinks | Comments Off on Links (2/26/2009)

Hide Users on Welcome Screen in Windows Server 2008

Posted by Steve Pietrek on February 26, 2009

I am in the process of putting together a demo VM. I have 8 users which I use from time to time; however, I always want to log on as the Administrator account. To save an extra click, I want to only allow the Administrator to display on the Welcome screen. A quick search on Google points you to posts on changing the Registry. Here is an example post listing the steps to modify the Registry.

Although modifying the Registry is an acceptable solution, I wanted an easier way. Below are steps to accomplish this request:

  1. Select Local Security Policy from Administrative Tools.
  2. Expand Local Policies.
  3. Select User Rights Assignment.
  4. Double-click Deny log on locally to display dialog.
  5. Add users or groups.
  6. Click OK to save.
  7. Reboot.

From the help:

This security setting determines which users are prevented from logging on at the computer. This policy setting supersedes the Allow log on locally policy setting if an account is subject to both policies.

Important: If you apply this security policy to the Everyone group, no one will be able to log on locally.

Update #1. It appears the same option is available for Windows Server 2003.

Posted in Infrastructure | 2 Comments »

Links (2/22/2008)

Posted by Steve Pietrek on February 22, 2009

  1. Storing a collection of objects in the hierarchical object store
  2. Using SPListItem.UpdateOverwriteVersion
  3. Why You Need Reflector: SPList.DefaultView
  4. Instantiate a Content Type
  5. Create SPFieldLookup programatically
  6. SharePoint Development Best Practices (Summary)
  7. Hard to find error creating SPWeb through API
  8. Search a single list, and don’t use the OSSSearchResults.aspx page…
  9. SPTDD: On Good Vs. Testable Code
  10. A Sign the Farm is Quiescent
  11. Making Your Central Search Center Available to All Users
  12. InfoPath and Visual Studio Workflows – 3 Great Tricks (2 of 3)
  13. Why ADWS will not work with dropdowns on browser-enabled forms
  14. Expanding the Size of Announcements Web Part
  15. MOSS Solutions and Features in Deployments ( Part 3 )
  16. Setting Up a Virtual Lab with Hyper-V
  17. SharePoint Analyzer v1.3 Preview
  18. Thinking Functional: Using
  19. Some advice for SharePoint Community Bloggers to up their game!
  20. Creating a SharePoint A-Team for your organization
  21. Using SharePoint to engage teens without web 2.0
  22. VSeWSS 1.3 CTP – why does it require SQL access?
  23. SharePoint CAML Query builder dialog for your Web Parts
  24. Show your Twitter log in SharePoint
  25. SharePoint Content vs. Code – A Parable
  26. Handling Paging and Total Results count in SharePoint custom results page

Posted in SPLinks | Comments Off on Links (2/22/2008)

Links (2/19/2009)

Posted by Steve Pietrek on February 19, 2009

  1. JQuery and the Content Editor Web Part
  2. JQuery – A Fresh Look at What YOU Can Do On SharePoint Without Server Code
  3. Faking SPContext
  4. Use case: Integrating SharePoint with LOB applications
  5. Best Practices: Common Coding Issues When Using the SharePoint Object Model
  6. MSDN Webcast: SharePoint Products and Technologies for Internet Site Development: Site Customization with Silverlight 2.0 (Level 200)
  7. Momentum Webcast: Improving Visibility into Organizational Performance (Part 2 of 4): Delivering Business Intelligence Capabilities Through SharePoint Server (Level 200)
  8. Video: BackSeat Driving – InfoPath
  9. Page hit counter in MOSS
  10. Understanding SharePoint: List Forms
  11. SharePoint QuickLaunchExtender
  12. The SharePoint Implementation Market needs to grow up!
  13. Leveraging the SharePoint Platform (Part 4)
  14. Electronic Forms: InfoPath or ASP.NET?
  15. Forcing Execution of MOSS Timer Jobs
  16. Creating a Wizard-Style Browser-Enabled InfoPath Form
  17. Silverlight Slide Show in SharePoint
  18. Creating custom list from hidden Event content type
  19. Some background about the development of LCM
  20. Creating Debug and Release SharePoint Solution Packages
  21. Content Deployment and CEWP Absolute URLs
  22. SharePoint Size !
  23. How to create custom view pages with a custom web part for the list definition – SharePoint WSS 3.0 / MOSS 2007
  24. SharePoint Deployment and Install Guide
  25. Debugging SharePoint solutions using Visual Studio
  26. Making Use of the SharePoint Field Type Editing Controls
  27. SharePoint and TDD – The other view
  28. Integrating a Custom ASP.NET Application into SharePoint (Part 1)
  29. The Wonderful World of KPIs
  30. How To Create Alerts Programmatically
  31. Audio: SharePoint Information Architecture and Visio As Well As Content Editor Webpart Tricks Podcasts
  32. Code sample for a Asynchronous webpart
  33. SharePoint tools support in Visual Studio
  34. SharePoint – InfoPath Workflow And Silverlight Development For SharePoint
  35. Automating WSS v3/MOSS 2007 development environment setup: part IX – Setup your farm with minimum settings
  36. Automating WSS v3/MOSS 2007 development environment setup: part X – Install Visual Studio 2008 + VS2008 SP1 + Team Explorer
  37. How to expand InputFormTextBox
  38. Learning SharePoint Part VII – List Pagination
  39. Hide the Sign In link for the anonymous user – SharePoint MOSS
  40. Setting Up a Virtual Lab with Hyper-V
  41. Are SharePoint Developers Better Architects than Architects?
  42. Content Deployment basics Sharepoint 2007 (MOSS)
  43. Workflow and InfoPath Links
  44. Getting Started with SharePoint 2007 Development – Q & A

Posted in SPLinks | Comments Off on Links (2/19/2009)

STSADM: Command Line Error

Posted by Steve Pietrek on February 19, 2009

I was working with a coworker yesterday. He was having an issue deploying a solution. Reviewing the STSADM command, things looked correct; however, when he hit Enter to run the command, all the STSADM commands would display. Similar to what happens when you run STSADM.EXE -help. Scrolling to the top of the list of commands was the “Command Line Error”.  Turns out he was copying the command from a blog post of mine and WordPress must do something with the dashes (similar issue with quotes).

Long story short, instead of copying/pasting STSADM commands, type the command manually. Problem solved.

Posted in SPErrors | 5 Comments »

Links (2/15/2009)

Posted by Steve Pietrek on February 15, 2009

  1. SharePoint field objects – classname, name and types
  2. ‘How Do I…BI?’ screencast series
  3. WSS Practice: Upload image to a Pictures Library
  4. Fast access items in an SPListCollection
  5. WSS Practice: Create and Reply to Discussions
  6. WSS Practice: Create a Calendar Event
  7. WSS Practice: Uploading a document
  8. WSS Practice: Attach files to ListItems
  9. WSS Practice: Checking in/out Documents, and Versioning
  10. WSS Practice: Creating and deleting Alerts
  11. WSS Practice: Create a list, columns and view programmatically
  12. Add SPDisposeCheck to VS External Tools
  13. Find Number of Users Currently Logged on to a SharePoint Site
  14. How to: Hide the Actions Menu in SharePoint
  15. Creating a Hello World Connectable Web Parts in SharePoint
  16. Understanding Web Part life cycle
  17. Best Practices slides & TechEd Presentation
  18. More Consulting Secrets They Won’t Tell You
  19. Application Development on SharePoint Online
  20. SharePoint – Add a page directly to a SharePoint site
  21. Attatching a Content DB to a Web Application
  22. Adding BDC Columns to a SharePoint List Programmatically
  23. Creating cross-site lookup field in SharePoint
  24. OBA Part 3 – Storing and Reading Data in Word Documents
  25. Guidance: Troubleshooting Search Propagation
  26. Guidance: User info synch in MOSS 2007
  27. Silverlight, SharePoint, Services…Oh Yeah!!!

Posted in SPLinks | Comments Off on Links (2/15/2009)

Links (2/12/2009)

Posted by Steve Pietrek on February 12, 2009

  1. Extending the web part framework – part 2
  2. Sales SharePoint Server 2007 Training Resources
  3. Architect SharePoint Server 2007 Training Resources
  4. Implementer SharePoint Server 2007 Training Resources
  5. Developer SharePoint Server 2007 Training Resources
  6. Building a Custom Workflow Initiation Form Using Visual Studio
  7. Analyzing SharePoint Usage
  8. An approach towards implementing information entry forms using Silverlight and SharePoint-Part 2
  9. Best Practices: Test Driven Development with SharePoint Slide Deck
  10. Odd behavior when working with SharePoint’s SPWebConfigModification
  11. Simplifying SharePoint Server Roles
  12. SharePoint + PowerShell
  13. Purging a SharePoint List using Powershell!
  14. Directory Synchronization – Use this tool to synchronize local directory services to Microsoft Online Services
  15. New Update to the MOSS 2007 C# Managed Protocol Handler
  16. Optimizing your very large site for search — Part 4
  17. Installing a Theme as a SharePoint Feature
  18. Difference between workflow created using SharePoint Designer and Visual Studio Designer for Windows Workflow Foundation.
  19. Analyzing Microsoft SharePoint Products and Technologies Usage
  20. Microsoft Announces Plans for New FAST Products
  21. Document Archiving Based on Custom Metadata
  22. Notes Migrator for SharePoint 5.1 is now available
  23. SharePoint 2007 tip: use Explorer not the browser to upload documents
  24. Using Workflow Object Model in SharePoint.
  25. Managing Tasks Permissions Programmatically within SharePoint using event reciever or using special permissions property
  26. Create a custom content type to be used with CreateTaskWithContentType activity in SharePoint Workflow
  27. Video: Building A World Class Online Library With SharePoint – MSLibrary
  28. Add a Banner to your SharePoint Site
  29. SharePoint JavaScript utilitiesSPListJS
  30. Creating a Custom Vista Theme for SharePoint
  31. SharePoint Online – A first look
  32. Silverlight SlideShow for SharePoint Picture Libraries
  33. VisiFire Open Source Silverlight Charting in SharePoint
  34. Modifying the second level navigation arrow image
  35. How SharePoint Found Its Content Database
  36. Validating a PeopleEditor Control on PostBack
  37. Taming SharePoint – article on SharePoint
  38. What is the Long Tail of SharePoint Solutions? – Part 2 of 3

Posted in SPLinks | Comments Off on Links (2/12/2009)

Links (2/8/2009)

Posted by Steve Pietrek on February 8, 2009

  1. SharePoint Diagnostics Tool v1.0 (SPDiag) Released
  2. Do Not Dispose SPFeatureReceiverProperties.Feature.Parent
  3. OBA Part 2 – Building an Outlook Client against LOB Data
  4. Building a customized document library filtering using content editor webpart and javascript
  5. Downloading files from document library remotely without any OM code
  6. JQuery and SharePoint 2007
  7. Geting SharePoint web service response in DataTable c#
  8. Query whole site collection using SPSiteDataQuery
  9. Simplify reading and writing field values of type SPFieldUser, SPFieldUrl and SPFieldLookup using extension methods
  10. Retrieving SharePoint List Data from Silverlight Without a Custom WCF or ASP.NET Web Service
  11. Best Practices: Agile SharePoint Development with Scrum Slide Deck
  12. A Quicker Way to Create Custom SharePoint List Templates
  13. Adding Custom Properties to SharePoint Features
  14. Why Isn’t InfoPath Retrieving All SharePoint List Items?
  15. SharePoint Customization Tricks: Part III
  16. Sample Event Handler to set Permissions (not using RunWithElevatedPrivilages)
  17. Quick and Easy Data Access with Excel Services
  18. Calling web services in web-enabled InfoPath forms
  19. How does it work: MOSS 2007 User Profile Import
  20. How can adopting Office 2007 help government agencies kick start the economy?
  21. Learn how to integrate PeopleSoft, Outlook and MOSS – OBA Starter Kit
  22. Web Services and SharePoint: How do I do it?
  23. What is SharePoint?
  24. Don’t Return an SPWeb after you’ve disposed the SPSite – another reason to be careful about passing around objects as parameters

Posted in SPLinks | Comments Off on Links (2/8/2009)

Links (2/5/2009)

Posted by Steve Pietrek on February 5, 2009

  1. **** OBA Part 1 – Exposing Line-of-Business Data
  2. **** Office 2007 (and beyond) Developer Resources: Looking ahead
  3. **** OpenXmlDeveloper.org
  4. **** Introducing the Office (2007) Open XML File Formats
  5. **** Application Lifecycle Management Resource Center for SharePoint
  6. Richer search results through the use of property restrictions with SharePoint
  7. Diagnosing and Fixing SharePoint Out of Memory Exceptions
  8. MSDN: Integrating External Document Repositories with SharePoint Server 2007
  9. Filter SharePoint Event Log Entries
  10. Microsoft SharePoint Administration Toolkit v3.0 x86
  11. SharePoint Diagnostics Tool (SPDiag) User Guide
  12. Grouping in SharePoint Lists and Libraries, Outlook Style!
  13. InfoPath: Deleting all rows except the first one in repeating table
  14. Top Tips for InfoPath form development with SharePoint: Part 1
  15. Populating InfoPath drop down with “FILTERED” SharePoint list data programmatically
  16. Populating InfoPath drop down with SharePoint list data programmatically – Part 2 (Using SPQuery)
  17. Populating InfoPath drop down with SharePoint list data programmatically
  18. SharePoint Tip/Trick: Promote an InfoPath Field to a SharePoint Person Field
  19. Virtual Earth Web Part
  20. Creating a top link bar navigation in MOSS site programmatically
  21. Reporting Services – Using a DataSet as the Source
  22. SharePoint People Search – Lessons learned. Part 1: Covering the basics
  23. SharePoint People Search – Lessons learned. Part 2: Programmatically running search queries
  24. How Long Does it Take to Train Someone to Be a Competent SharePoint Developer?
  25. How to get the Webpart XML programmatically in moss
  26. Consuming Excel Data using InfoPath Database Data Connections (InfoPath team blog)
  27. Getting to know the Data Form Web Part (4 of 4)
  28. Vista prompt me no more!
  29. Looking to Learn about Office Development & VSTO?
  30. Integrating External Document Repositories with SharePoint Server 2007
  31. SharePoint: temporary solution for GetCustomProperty and SetCustomProperty errors
  32. SharePoint: Best Practice about SharePoint List Iterations
  33. How to: Create a footer for your SharePoint pages
  34. Automatically marking up abbreviations and acronyms in SharePoint 2007
  35. SharePoint 2007 redirect solved: using 301 instead of 302 redirects
  36. New Case Study Involving Excel Services
  37. Business Intelligence: Using SQL 2008 Reporting Services and SQL Report Builder 2.0 with Log Parser
  38. Creating custom permission level in moss
  39. Visual Studio Tip/Trick: Add CAML IntelliSense for SharePoint Features
  40. Introduction to Exchange Online – Uncovering BPOS (Part 1)
  41. Introduction to Exchange Online – Uncovering BPOS (Part 2)
  42. How to create a MOSS 2007 web part that has an image and a link by using picture library
  43. SharePoint Customization Tricks – Part 1
  44. How to Evaluate a SharePoint Consultant…
  45. Getting Started with Visual Studio Extensions for Windows SharePoint Services 1.3 (VSeWSS)

Posted in SPLinks | Comments Off on Links (2/5/2009)

SharePoint Object Dispose Guidance

Posted by Steve Pietrek on February 2, 2009

Last week, the Microsoft SharePoint team released SPDisposeCheck. SPDisposeCheck is a tool which will check your code and alert you when SharePoint objects are not being disposed of properly. Keith Dahlby has a good post where he warns people that SPDisposeCheck is not 100% perfect and should not be the end all. After the SPDisposeCheck tool was released to the public last week, I ran it against my source code for a decent size project I finished up with a few weeks ago. Fortunately, there were no issues reported. I am not posting to gloat; rather list things I did and resources I used to improve my code to avoid leaks.

Read the rest of this entry »

Posted in SPDev | Comments Off on SharePoint Object Dispose Guidance

Links (2/1/2009)

Posted by Steve Pietrek on February 1, 2009

  1. **** Best Practices: Using Disposable Windows SharePoint Services Objects – updated 1/30/2009
  2. **** Automate SharePoint Dispose() code reviews with SPDisposeCheck
  3. **** SPList has no Url property?
  4. Hide Custom Actions
  5. Extending the web part framework – part 1
  6. Querystring parameters you should not use in your SharePoint application
  7. Expand and Collapse All Feature v1.0 Released
  8. Manage large SharePoint lists for better performance
  9. Free web part download: Show Icons for External Links
  10. SPDisposeCheck Is Not A Shortcut
  11. Programmatically Importing SharePoint Reusable Content
  12. Working with the SPFieldLookupValue Class in SharePoint
  13. Connecting With Excel Services in Microsoft Office SharePoint Server 2007 to Create a Controller Workspace
  14. How to Add a Rich Text Editor to your Custom Application Pages
  15. SharePoint SPQuery Obtaining Distinct Results
  16. Complex SharePoint Web Part Properties
  17. Subscribe to SharePoint Web Parts using Internet Explorer 8 Web Slices
  18. SharePoint Development and Application Lifecycle Management
  19. Read only field in SharePoint EditForm.aspx
  20. Making a Custom Ribbon Appear Only for a Custom Outlook Form
  21. Browsing SharePoint using WebDav from Windows 2008
  22. Blocking the use of the Content Editor Web Part in SharePoint Server 2007 Publishing Sites

Posted in SPLinks | Comments Off on Links (2/1/2009)