735 reputation
1640
bio website geirsmestad.com
location Norway
age 27
visits member for 3 years, 3 months
seen May 22 at 15:36

Jun
13
comment Logging document library downloads with HttpModule
Thanks for your input. If I'm not overlooking anything, the built-in auditing reports don't give any information about which users have viewed each document. I'll look into the third-party option, but it is probably much more comprehensive than what we need.
Jun
13
asked Logging document library downloads with HttpModule
Jun
8
comment SPWeb.CurrentUser gives wrong result when called from HttpModule
Okay, in case you're still watching this, I did get this working. The logged in user to SharePoint was always sp_test, as displayed in the Welcome control. As you suggested, it turns out that HttpContext.Current.User.Identity.Name returned the identity of the logged in Windows user when read from the HttpModule. This turns out to be good enough, as in my application the logged in Windows user and the current SharePoint user can be assumed to be identical. Thanks again.
Jun
7
answered Where to find PublicKeyToken?
Jun
1
awarded  Commentator
Jun
1
comment SPWeb.CurrentUser gives wrong result when called from HttpModule
Thanks for your input. Utils.siteAddress is actually a hard-coded URL, so I might switch to SPContext. I really appreciate the advice regarding the coding practices; I am still very much a SharePoint newbie. Going on a climbing trip for the extended weekend, so just FYI I won't have time to look at this again until Monday.
Jun
1
comment SPWeb.CurrentUser gives wrong result when called from HttpModule
I haven't got privileges for the test user in the Windows environment, but logging in as a different admin user gave the same results, ie. CurrentUser returned dev_admin.
Jun
1
asked SPWeb.CurrentUser gives wrong result when called from HttpModule
May
30
comment Adding item to list view context menu
Ok, ended up pointing the custom action to an aspx page which reads the list item ID as an URL parameter and then forwards to the appropriate URL. Sort of hackish, but works well enough. Thanks for the tip about using SharePoint designer in SP2010, this makes everything a lot easier.
May
30
accepted Adding item to list view context menu
May
30
comment Adding item to list view context menu
Thanks, this is a step in the right direction. However, I still need access to the contents of the selected list item..just getting the item ID isn't sufficient. Specifically, I need the contents of the field "History". Do you from the top of your head know how to do this?
May
30
asked Adding item to list view context menu
May
26
comment Content types vs. custom list field
Thanks, I hadn't considered search..but obviously that's a good reason to use content types.
May
26
accepted Content types vs. custom list field
May
26
asked Content types vs. custom list field
May
23
awarded  Teacher
May
23
answered suitable content type for news with images
May
20
awarded  Editor
May
20
revised Management of external users
added 560 characters in body; added 1 characters in body
May
20
comment Management of external users
Thanks. This is probably overkill (we have ~1000 users, ~200 of them external), but might be useful for future projects. The problem with using a different authentication provider for this usage scenario is that AD works really well and has a good API. I'm thinking that it's better to stick with AD unless you don't have another choice, seeing as it's what SharePoint was meant to work with in the first place.