Geeks With Blogs

News

Steve Clements .Net and then some....

To all reading this via my rss feed, please update the feed url to http://feeds.feedburner.com/stevecl

After the google owns feedburner change I cannot access my original feed – it says its migrated, but not to my account!!

Nothing more will be coming through on this feed.



It’s not an uncommon task to want to find out in what webs you have a specific feature enabled. This little script does just that, taking 2 params (site collection url, feature name) and simple output the SharePoint web url. Nothing fancy, but certainly a useful script to have in your toolbox! A good example of this is where you are using content publishing ......

Recently I came up against a problem where I was getting 401 Unauthorized and 403 Forbidden errors in SharePoint on an extended anonymous only site. It worked perfectly when using windows authentication, for any level of user. In the end I tracked the problem down to accessing SPContext.Current I found this article which states you should use SPSecurity.RunWithElevatedP... ......

What you need / What you've got? Pretty obvious, when a user edits/changes a page, you need someone to check its all good before it goes live! Aka Publishing Approval You can use the "Publishing site with workflow" template or enable it manually or set it up in your custom site definition. BUT...you've got an entire site collection full of web sites ......

Took me a little while to figure this one out, you’ve assigned your workflow to a library and you can set all other other flags like “AllowStartChange” and “AllowStartCreate”, but cant see how to set “Start this workflow to approve publishing a major version of an item.” That’s because its a property on the library itself called “DefaultContentApprovalWork... ......

It’s pretty widely accepted (and common sense) that if you’re putting a site out into the wild – such a simple task as minifying CSS and JavaScript files can save a bunch of load time, especially on mobile devices. I’ve been playing about with this today and was quite happily using jsmin as described here until I noticed that in IE 7 and IE 8 the minified ......

You want the RAD wonderfulness of a visual web part, but it needs to be deployed as a Sandboxed solution. Problem? No, SharePoint powertools for visual studio to the rescue! http://goo.gl/pQ9ct There are a couple limitations, read the above page, nothing major. e.g. 1. Javascript debugging is not supported 2. Debugging asp.net code is not supported. ......

I hope you haven’t come here looking for an answer!!! Because I want one too!!! I have recently been playing with JQM…and initially loved it….but…. I mean, jQuery mobile is fantastic...whats been done here I think is awesome. I'm enjoying working with it. (I know its beta 1!, but the below seems odd for even a beta release) There seems to be some fundamental ......

If you didn’t know, you probably will soon, the SPGridView is not available in Sandboxed solutions. To be honest there doesn’t seem to be a great deal of information out there about the whys and what nots, basically its not part of the Sandbox SharePoint API. Of course the error message from SharePoint is about as useful as punch in the face… An unexpected ......

There are a million plugins for jQuery and when a web forms developer like myself works in MVC making use of them is par-for-the-course! MVC is the way now, web forms are but a memory!! Grids / tables are my focus at the moment. I don’t want to get in to righting reems of css and html, but it’s not acceptable to simply dump a table on the screen, functionality ......

Copyright © Steve Clements | Powered by: GeeksWithBlogs.net | Join free