359 reputation
317
bio website
location 6
age
visits member for 4 years, 6 months
seen Sep 14 at 11:42

"Being an Alice in the world of computing can be a very problematic position."

I'm a Community Manager for the Stack Exchange Network. I look forward to working with you on improving this community. ♪

On the offside: programmer/designer with a Computer Science degree and an electronic media degree. Enjoys gaming and does designwork as a hobby. Formerly employed as a full-time SharePoint developer in a WSS 3.0 environment.


May
26
asked How do I fetch the attachments from an AttachmentsField control?
May
26
comment Validation on page load treats SharePoint field controls as empty
Tried this in conjunction with Dave's answer to see if I could hit the DateTimeControl, but it didn't take. However, switching it to OnPreRenderComplete did successfully hit those, so that seems to do the trick.
May
26
comment Validation on page load treats SharePoint field controls as empty
This did the trick... sorta. Only works if I use the built-in UserField and DateTimeField controls, but it doesn't work with the bare DateTimeControl. Which is curious, but in general unimpactful since I'm preferable to the former in the first place. Thanks, both for the answer and the better tip for common practices.
May
26
accepted Validation on page load treats SharePoint field controls as empty
May
25
asked Validation on page load treats SharePoint field controls as empty
May
23
comment How do I set a list to not be valid for search through the object model?
So simple, and yet so easy to overlook because all of the documentation seems to go all the way to avoiding the word "Search" on a setting that, in the UI, only says "Search".
May
23
accepted How do I set a list to not be valid for search through the object model?
May
20
awarded  Quorum
May
19
comment How do I set a list to not be valid for search through the object model?
I want to stop 1 specific list that's deployed on each site. It's a single list that's used purely as a lookup table. The rest of the stuff we do need to be searched, I just don't want all of the lookup table stuff showing up amidst the results (which they do, currently, should I not disable it).
May
19
comment How do I set a list to not be valid for search through the object model?
Quite, it's also across multiple site collections and new collections that will be deployed in the future. It's something I'd really like to enable as part of the automated portion of the deployment.
May
19
asked How do I set a list to not be valid for search through the object model?
May
13
comment Cannot upload to a permissions-enabled document library even with RunWithElevatedPrivileges
Hm... I'll try that instead, and treat that as your answer. Though, if it turns out to solve the problem, you'll need to revise your answer to reflect the contents of your comment here. ♪
May
13
comment Cannot upload to a permissions-enabled document library even with RunWithElevatedPrivileges
I'd like to see those references, because my recollection is that SPContext is guaranteed to be the current user, while generating a new SPSite inside of RunWithElevatedPrivileges is supposed to be created under the admin privileges, not the current user (if created outside of RunWithElevatedPrivileges, it would indeed use the current user). I'll give it a shot, though. Next time we run into the situation, I'll see if it works better.
May
13
comment Cannot upload to a permissions-enabled document library even with RunWithElevatedPrivileges
@DaveWise The removal of the statement still yields the Access Denied error, therefore I find that to be verification that the Access Denied is not caused by the update statement, but something else that I am still unaware of.
May
13
comment Cannot upload to a permissions-enabled document library even with RunWithElevatedPrivileges
@DaveWise On your advice, I double checked the necessity of those update statements, and have since removed them from the code. However, the error is still being returned.
May
13
revised Cannot upload to a permissions-enabled document library even with RunWithElevatedPrivileges
Updated code to not use unnecessary web.Update calls. Left the u1/u2 thing in, though, as the removal or presence of them doesn't appear to have an impact.
May
13
comment Is it necessary to call SPWeb.Update() after setting AllowUnsafeUpdates?
Thanks for the quick response! I should go fix all those erroneous Updates, then. Unfortunately, though, this still didn't fix my non-permitted uploads...
May
13
accepted Is it necessary to call SPWeb.Update() after setting AllowUnsafeUpdates?
May
13
comment Cannot upload to a permissions-enabled document library even with RunWithElevatedPrivileges
No go. I've tried both the fewer arguments on SPFileCollection.Add(), and then adding also the swap to use l.RootFolder, and neither worked. Thanks for the suggestion, though.
May
13
asked Is it necessary to call SPWeb.Update() after setting AllowUnsafeUpdates?