Archive for June, 2011

Assembla – free svn

Assembla is a free subversion for any types of projects. You can use it to store solution online, follow the changes you made(file versioning), share Your work etc. Using Assembla is free and the only thing You have to do is registering on the site and creating a new space for Your project.

Additionally, with a help of third-party tools it’s possible to extend Your Visual Studio 2005/2008/2010 with ability to manage Your Assembla source code. (continue reading…)


SqlMembershipProvider – Users management

In the previous post I showed You how to manage roles for forms authentication. Now I’ll explain how to manage users from the code side.

The main class which lets You manage users from provider is System.WebSecurity.SqlMembershipProvider class.

To get the SqlMembershipProvider object You have to use System.Web.Security.Membership class and pass the name of the provider You want to obtain: (continue reading…)


SqlMembershipProvider – Roles management

In the previous post I showed You how to create custom log in page for forms authentication. Now I’ll explain how to manage roles from the code side.

The main class which lets You manage roles from provider is System.Web.Security.SqlRoleProvider class.

To get the SqlRoleProvider object You have to use System.Web.Security.Roles class and pass the name of the provider You want to obtain: (continue reading…)


SharePoint 2010 custom login page

UPDATE
If Your interested in custom login page for SharePoint 2013, check this post.

In SharePoint 2010(like in previous versions) You can enable forms authentication along with standard AD authentication. Thanks to that the internal users can log in to SharePoint using theirs domain accounts and external users can use prepared accounts which are kept in the database. Here is very good instruction step by step how to enable this funcionality. (continue reading…)


SPSecurity.RunWithElevatedPrivileges – the way to become a god

Permission levels in SharePoint are very important thing. They define actions which specified users can perform on sites, lists etc. But, in vast amount of applications, there is a way to bypass permission checking and become a “god” who can do almost everything. I’m talking about SPSecurity.RunWithElevatedPrivileges method. This method lets’ You get a reference to the SPSite object and with it You can access any of the site collection elements with administrator rights.

(continue reading…)


Copyright © 1996-2010 Tomasz Rabiński | zavaz Blog. All rights reserved.
Jarrah theme by Templates Next | Powered by WordPress