Tag Info

Hot answers tagged

4

Your best bet would be to remove that field/column from the Public view and all other views where you dont want to see it. If you still want to see the value, create a calculated column which extracts the value from the lookup column and displays that. use the =TEXT calculated column Hope this helps.


2

What you'll want to look into is Forms Based Authentication (FBA) with the SQL Server provider. There is a provider for SharePoint that will actually store the credentials in SQL Server via a IIS Access Control List functionality. Using this method, the users do not have to be set up in Active Directory, yet they are still safely encrypted in the database. ...


2

Tried this? using(SPWeb oWeb = SPContext.Current.Site.OpenWeb(guidWebsite)) { SPUser oUser = SPContext.Current.Web.CurrentUser; } If I misunderstood your question, and you are asking about retrieving the number of currently logged in users, Bjorn Furuknap has previously written about this here: ...


2

Check the GetUserProfile from UserProfileManager. You get the whole object, should be the right spot to search for a list of all custom properties.. i'm working on an almost simliar webpart.. im trying to display only a couple of custom properties.. hope to help ...


2

First of all never ever use LINQ in this way in SharePoint! You will retrieve the full user information list from the database when hitting the .Items property! Instead use a CAML query to "search" for the users using the SPQuery object. I would recommend that you use the U2U CAML Query builder to build your query - using that tool you will get the correct ...


1

The code itself is rather strange. Why are you recreating already existent objects (I mean SPSite and SPWeb)? Based on my experience, this could lead to some rather weird heisenbugs, not to mention possible performance hit (especially if the procedure is called repeatedly from a loop). Thuswise, the first thing I'd recommend is to avoid the needless ...


1

I am getting this Error when I am updating the SPItem as below: NOTE: the Web object is initialized through SPControl.getContextWeb(context); this.Web.AllowUnsafeUpdates = true; this.spItemObeject.Update(); this.Web.AllowUnsafeUpdates = false; so i finally changed the code as below its worked fine: spItemObeject.Web.AllowUnsafeUpdates = true; ...


1

Try this code: private void updateUserProfileChanges(string accountName) { string localLastUpdateDate =""; SPSecurity.RunWithElevatedPrivileges(delegate { string centralAdminUrl = SPAdministrationWebApplication.Local.AlternateUrls[0].IncomingUrl; using (SPSite ca = new SPSite(centralAdminUrl)) { ...


1

Mike is right about the user information list, but the ability to make it read only is in the farm administrators hands too. Per web application, you can block the ability to Edit Personal User Information. This security right is in Central Administration, Application Management, User Permissions for Web Application. That may give you at least one option ...



Only top voted, non community-wiki answers of a minimum length are eligible