you need to use this, which will insert the correct full ID for the element and thus work correctly:
It gets a bit more complicated when using nested controls, which is explained in this post by Eric Shupps.
I’m working on a Visual Studio 2005 ASP.NET project which makes use of FreeTextBox to provide rich text editing capability. My code sets up the toolbar programmatically but, despite following the installation instructions to the letter (including setting up the FTB TagPrefix), my code was failing to compile with The type or namespace name ‘Toolbar’ could not be found on the following line of code:
Toolbar ftbTools = new Toolbar();
I initially fixed this by adding the FreeTextBoxControls prefix:
FreeTextBoxControls.Toolbar ftbTools =
But then my code fell over with a similar error on the very next line:
Not wanting to have to add the FreeTextBoxControls prefix to this and my other 18 Add statements, I instead added the following using statement to my code file:
The Include Gadget allows you to embed any HTML page within your iGoogle start page without having to go to the trouble of writing a true iGoogle widget. I’ve created a “Work” tab on my iGoogle page and I’m using the Include Gadget to display the latest news from my company intranet alongside some other useful gadgets, as illustrated below.
Here’s a quick function I wrote to check whether a user is a member of a particular SharePoint group:
private bool IsMemberOf(string groupName)
SPUser user = SPContext.Current.Web.CurrentUser;
if (user.Groups[groupName] != null)
The try-catch is required as – somewhat counter-intuitively – SharePoint seems to throw a “Group not found” error if the user is not a member of the group.
Like me, Darren Wright is fed up of seeing notifications in his news feed from applications such as FarmVille. Fortunately there’s an easy way to solve this, which doesn’t involve unfriending anybody!
Just click the Hide button next to one of the offending notifications, and you will be given the option to hide notifications from that application. Even better, this also stops the notifications from appearing on the Facebook mobile site, iPhone application and third-party readers such as TweetDeck.
Thanks to Darren for bringing this to my attention.
There’s also the option of switching to Facebook Lite, a back-to-basics version of Facebook which does away with applications altogether.
I’ve spent some time today trying to figure out how to set the title of a SharePoint page from my own code. As blogger Michael Becker rightly points out, you can’t simply set Page.Title.
The correct solution, as provided by Michael, is illustrated in this example C# code:
// Get a reference to the appropriate Content Placeholder
ContentPlaceHolder contentPlaceHolder = (ContentPlaceHolder)
// Clear out anything that SharePoint might have put in it already
// Put your content in
LiteralControl literalControl = new LiteralControl();
literalControl.Text = "Your text goes here";
Happily this even works when you “cheat” by hosting an ASP.NET user control within a SmartPart, as opposed to creating a bona fide Web Part.
The BBC Future Media & Technology team have announced that their first official iPhone application, BBC News, is currently under development and due for release next month.
I’ve had a play with the online demo and it looks pretty slick, so I’m looking forward to installing the app when it becomes available.
The BBC are also planning to follow up with a BBC Sport application, and they’re also considering an iPlayer app in order to provide a richer experience than the current iPlayer mobile site.
Update: Sadly, these plans have been shelved for the time being.
Cleverly-named SeeSaw is a new catch-up TV service with content from the BBC, ITV, Channel 4 and Five. While much of the content is already available on the respective broadcasters’ own on-demand services, it’s nice to have everything in one place.
The site boasts a slick user interface that’s a pleasure to use, and I found the picture quality to be very good with no buffering problems to speak of.
Clearly the site has to make money somehow, and in SeeSaw’s case it’s through video advertisements embedded into the programmes you watch, something that commercial TV viewers are used to seeing.
SeeSaw have future plans to licence programmes from a wider range of broadcasters, which will enhance the service’s appeal.
Interestingly a TV licence is not required to use on-demand services such as SeeSaw – you are only legally obliged to buy a TV licence if you watch broadcast TV.
Google offer a standalone installer for the Windows build of Google Chrome, as opposed to the standard download which is actually just a small stub application that connects to Google’s servers to download and install the actual browser.
The offline installer is handy if you have a number of machines on which to install or update Chrome, but unfortunately Google haven’t updated it recently, so you end up with version 22.214.171.124 rather than the latest all-singing, all-dancing, extension-supporting version 126.96.36.199.
You can of course update to 188.8.131.52 from the About screen, but this defeats the purpose of using the standalone installer in the first place, and you may be unlucky enough to be on a corporate network which breaks the in-browser upgrade functionality.
By using Fiddler2 to monitor the activity of the stub installer, I was able to establish that it connects to the following google.com URL to download the latest build:
This is your standalone/offline installer, which can be used to install new instances of Chrome or upgrade existing ones (in which case the installer will upgrade your browser silently).
Google release new builds fairly frequently, so keep an eye on the Google Chrome Releases blog and substitute 249.89 with the build number of the latest stable (or development, if you’re feeling brave) build, e.g. http://cache.pack.google.com/edgedl/chrome/install/322.2/chrome_installer.exe for version 5.0.322.2.
Ninite is a free (for personal use) service which allows you to download and install several popular pieces of Windows software in bulk from a single installer – great when building a new PC or reinstalling an OS on an existing machine.
When you visit the site, you are presented with a list of well-known free and trial applications. Just select the ones you’re interested in, click Download and you’re presented with a small (~200K) stub installer which, when launched, downloads and installs each chosen application without user intervention.
I’ve just tried it on a new machine I’m setting up, and although it takes a while to download and install everything (I had selected quite a few apps), this part of the process is completely automated so you’re free to do something else while you wait.