Archive

Archive for December, 2011

Setting value for People Editor Control using code behind as current logged in user

December 9, 2011 2 comments

Hi Friends,

How to preloaded the SharePoint people editor control with current logged in user as a following

MyPeopleEditor.CommaSeparatedAccounts =
            "SPContext.Current.Web.CurrentUser.LoginName";
MyPeopleEditor.Validate();

Happy coding.

“Cannot generate SSPI context” error, when connecting to SQL Server from other machine using SSMS

December 9, 2011 Leave a comment

Friends, Some days back when I tried to connect to a SQL server instance using SSMS form one of the machine in same domain I got error ”Cannot generate SSPI context” , after struggling a lot and going through this support article not found a solution to make it work.

Finally solution found, the issue is because of different time set on both server and the machine where I was running SSMS. After setting same time on both the issue get resolved.

Happy coding.