Posts

Prevent site owners from creating subsites in SharePoint 2010

Image
If your users are naughty enough and you want to keep them from adding new sub sites for a specific web application. Just follow the steps below: This is specially useful when the naughty users are site owners such as in case of My Sites. 1. From Central Administration, Go to “Manage Web Application” screen. 2. Select a web application and click the “Permission Policy” button from the ribbon. 3. A screen will pop up with all existing permission levels. 4. Select “Add Permission Policy Level” link from the screen. 5. On “Add Permission Policy Level” screen, name the permission level appropriately. 6. Under Site Permissions category, select the “Deny” option for “Create Subsites” permission and save it. 7. You will see a new Permission Policy Level in the list of existing ones. 8. From the ribbon, click “User Policy” button. 9. A screen will pop up with all existing user policies. 10. Click “Add Users” link from Policy For Web Application screen. 11. A wizard will open, allowing you to s...

Getting the full url of a Document Library from SPList object

Might save you a couple of minutes. To get the full url of a document library's default view, you can do something like below: (assuming list is a SPList object for the document library) list.ParentWeb.URL + "/" + list.DefaultView.Url Do note that if you you use ParentWebUrl or DefaultViewUrl properties of SPList object, you would not get the same results as these properties return server relative URLs.

Completed the MCPD Enterprise Application Developer Track

Today I cleared the final paper for MCPD Enterprise Application Developer Track (Exam 70-549). Now i hold the following certifications, MCPD Enterprise Application Developer MCTS Web based Client developement MCTS Windows based Client developement MCTS Distributed Application Development One thing i noticed that many exam questions particularily in Exam 70-549 are quite different from what is covered in the self paced training kit. So, the passing of the exam depends upon the experience of the developer as well. Good luck to all of you who intend to take the test.

Protected Configuration with Desktop Apps in .Net

If you are looking for a solution to use .Net 2.0 Protected Configuration feature with Windows application rather than Web apps, check out my article at codeproject. http://www.codeproject.com/KB/security/ProtectedConfigWinApps.aspx