241 reputation
112
bio website tehone.com
location United States
age 36
visits member for 3 years, 11 months
seen 2 days ago

A dedicated and highly motivated developer with over 15 years’ experience in internet technologies and solutions.


Aug
27
comment SQQuery, Dates and Regional Settings
Ok, I may have spoken too soon. Even with this option the query is still sent to the DB with an automatic adjustment based on my regional settings... Oh SharePoint, how I hate thee sometimes.
Aug
27
comment SQQuery, Dates and Regional Settings
Thanks for the reply and information. My biggest problem isn't getting things into or out of UTC. The problem is when I provide a UTC date to an SPQuery, it sends that date to the DB as the users local time instead of keeping it as UTC. Since I'm doing stuff that depends highly on date/time, this is causing results to be left off that should be included.
Aug
18
comment Changing PublishingPage.Layout doesn't change the content type?
Just thought I'd come back an post an update on this. Just changing the page layout wasn't enough for me, I had to also set the ContentTypeId as @GavinB suggested. Here is a code snippet: page.Layout = newPageLayout; page.ListItem[SPBuiltInFieldId.ContentTypeId] = newPageLayout.AssociatedContentType.Id; page.Update();
Jun
14
comment SharePoint list query efficiency
Thanks for the reply. The point about security trimming is a good point. There will be security placed on some individual items. A lot of the data won't have security, but some will. I will be using the modification date to only pull new items for "partial updates". But when I need to pull the full view again I need to pull the most recent 20 (or more or less) items in. Some of those items will already be in cache, so I don't need to fetch the full dataset for them from the db, I just need their ids to check against cache. Then for items not in cache, I need to go back for the full dataset.
Mar
8
comment Is accessing AllProperties efficient?
I mean that I assume that data stored there must be kept in the DB. So I'm just not sure when or how the data gets pulled from the DB. Is it on every request, regardless of if I access the properties or not. And is it cached or kept in memory so that if I access it repeatedly in different web controls, I'm not causing extra trips back to the db. My main concern is just that I don't want to cause extra trips to the db, and if I was going to cause extra trips to the db, then I was just going to cache the data myself instead of pulling from AllProperties each time.
Mar
8
comment Is accessing AllProperties efficient?
Thanks for the info. I already knew that AllProperties was a Hashtable, but what I didn't know and still don't know is how and when this get's populated and if using it causes any extra overhead. Is it populated on every request? Is it populated regardless of weather I access it directly? If I access SPWeb.ParentWeb.AllProperties, would that cause any extra trip to the db or is it already in the request context. These are things that I don't seem to be able to find out. Can you give me any insight on these questions?
Mar
7
comment Does a trusted My Site location actually have to point to a My Site Host?
The main reason is because I want to be able to use my same master page, css, js etc from my main site. I can easily do this by creating a sub site. But if I create a new site collection then I have a big layer of separation to contend with.
Mar
6
comment Changing PublishingPage.Layout doesn't change the content type?
For a publishing page, how do you change the content type? I thought changing the layout is supposed to automatically change the content type too. But it doesn't seem to be doing this on my SharePoint site. Oh, and just incase I wasn't clear, I'm doing this via the object model.
Nov
30
comment Is it possible to add page layouts/web parts using a feature activated in a sub site?
Thanks for the confirmation, this is pretty much what I thought, but I had hoped I was wrong.
May
19
comment Custom Ribbon Button doesn't show on subsites
Nope, it actually is a site scoped feature.
May
3
comment How can I upload documents/pictures into a users “My Site” Shared documents/pictures?
My goal is this (in a nut shell). I have my main intranet site, MyMainSite and on that site I want to make a web part that allows users to upload photos that become part of a photo gallery. But I was thinking it would make sense to store these photos in each users own "My Site" shared picture library instead of storing them on MyMainSite. So I was hoping there was a really easy way for me to just get programmatic access to the users shared MySite picture library. Sounds like I'm going to have to use the User Profile to get the MySite address & then do an OpenSite etc. Any other options?
Mar
3
comment Setting the value of a custom web part property using object model
I suppose this would be easier than reflection, I was just hoping for some built in SharePoint way of handling this without reflection or casting. Thanks again.
Sep
27
comment Set custom publishing page layout custom field programatically
I tried this, it didn't work either.
Aug
26
comment Should I store serialized (to xml) object in SharePoint list?
Unfortunately, I'm still stuck with 2007. Thanks though.