750 reputation
1741
bio website geirsmestad.com
location Norway
age 27
visits member for 3 years, 4 months
seen Aug 17 at 15:19

Jun
14
comment Logging document library downloads with HttpModule
Thanks a lot, guys. This solves my problem in a reasonably tidy way. Both answers are good; I'm awarding to @Andy because this is what sent me down the right path.
Jun
14
accepted Logging document library downloads with HttpModule
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