.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Using $Resources in CustomAction Ribbon definitions

Posted By:      Posted Date: October 15, 2010    Points: 0   Category :SharePoint

I'm trying to create extensions to the Ribbon which are used in a multilingual environment and am experiencing two problems which I hope you guys can help me out with.

When peeking into the default SharePoint ribbon definitions in 14\TEMPLATE\GLOBAL\XML\CMDUI.xml I see I should simply be able to use $Resources:<resourcefile>,<resourcename>; in the XML definition. This is true. This is what I did:

  1. I created a Farm feature using Visual Studio 2010 which contains a SharePoint mapped folder to Resources.
  2. In the mapped folder I created a file MyProject.resx and MyProject.NL-nl.resx
  3. I filled both resource files with the same text keys and the first with the English text and the latter with Dutch text. One of them being Teststring.
  4. In my CustomAction definition containing the custom Ribbon elements I used LabelText="$Resources:MyProject,Teststring"
  5. I deployed the features to my dev environment
  6. When opening the list the ribbon was bound to, it showed my custom ribbon and it even showed the text from my resource file!

So far so good.

Problem 1

However, it always picks the translation from the default MyProject.resx resource file. I've tried changing user language, site language, site localization language, but none of it works. It will always pick the

View Complete Post

More Related Resource Links

CustomAction - from DisplayFormToolbar to Ribbon - Picture Library


I used the 2007 format of CustomAction for Picture library using the below xml:

   Title="My custom action"
   Description="My custom action"
   <UrlAction Url="javascript: alert('this works');"/>


This works in SharePoint 2007, but we need to tweak it a little for 2010 as below:

<CustomAction Id="MyCustomAction"

How to detect and avoid memory and resources leaks in .NET application

Despite what a lot of people believe, it's easy to introduce memory and resources leaks in .NET applications. The Garbage Collector, or GC for close friends, is not a magician who would completely relieve you from taking care of your memory and resources consumption.

I'll explain in this article why memory leaks exist in .NET and how to avoid them. Don't worry, I won't focus here on the inner workings of the garbage collector and other advanced characteristics of memory and resources management in .NET.

Creating Dialogs and Ribbon Controls for SharePoint 2010

SharePoint 2010 provides new user interface components, such as server ribbons, and the new dialog platform. As a developer, you can create controls for the server ribbon and dialog boxes for the dialog platform.

SharePoint 2010 - Top 10 Resources to get you started

This post contains links to download evaluation software, guides, demo virtual machines and lots more, for both Developers and IT Professionals.SharePoint 2010 - Top 10 Resources to get you started

Resources for soup-to-nuts of website development lifecycle



 I'm looking for a website, or book, or some resource that can lead me down the path from website design to implementation/deployment. I know that covers a ton of material, but I am really looking for the bullet points, or high-lights, to make sure that I think of everything. I am mostly fuzzy on security measures and deployment since I haven't been involved in those aspects before.

Background:  I have been a programmer for many years, and with a little over 3 years' experience coding websites in vb.net/asp.net with sql server. Due to recent restructuring/layoffs at our firm, I find myself in the position of lead IT person - I'm feeling a bit underqualified but I feel this is my chance to work hard and step up to it. I'm very good at vb.net, master pages, css, asp.net, sql server. I'm worried that the person who was the lead before was doing a bunch of stuff that I'm not aware of...so I need to start learning more than just the code. I don't need lessons on how to code anything...I need to learn how it all gets put together - the next step up.

thanks for any suggestions!

RibbonX API: Extend The 2007 Office System With Your Own Ribbon Tabs And Controls


If you want to create your own professional looking tabs and controls in Office, check out the RibbonX API of the 2007 Microsoft Office system.

Eric Faller

MSDN Magazine February 2007

Basic Instincts: Resources and Localization in ASP.NET 2.0


In this installment of Advanced Basics Ted Pattison discusses the localization of Web sites in ASP.NET 2.0.

Ted Pattison

MSDN Magazine August 2006

Basic Instincts: Resources and Localization


There are two ways you can utilize resources such as strings, images, and text-based files from your Microsoft® . NET Framework-based application. You can embed them directly in the app or you can load them from an external file.

Ted Pattison

MSDN Magazine May 2006

New Stuff: Resources for Your Developer Toolbox


Databeacon Smart Client software allows users to perform data analysis, turning relational data from any data source into online analytical processing (OLAP) cubes that can be explored and manipulated using one of three Databeacon viewers.

Marnie Hutcheson

MSDN Magazine December 2005

New Stuff: Resources for Your Developer Toolbox


Code refactoring is defined as the act of changing code without changing what it does. The actual work involved in refactoring-extracting methods from oversized modules, tidying up and unifying variable names, identifying unhandled exceptions, and all the other cleanup, simplification, and standardization chores-can be daunting, indeed, and risky too.

Marnie Hutcheson

MSDN Magazine November 2005

New Stuff: Resources for Your Developer Toolbox


ActiveReports for . NET 2. 0 by Data Dynamics is written in C# and integrates with the Visual Studio® . NET development environment to let you create dynamic reports and charts. Drop the Report Viewer control on your Windows® Form or Web Form, specify the data source and authentication information for the data connection wizard, and it builds the connection string for you.

Marnie Hutcheson

MSDN Magazine October 2005

New Stuff: Resources for Your Developer Toolbox


From my first look at VG. net V2. 4b by Prodige Software Corporation, it seemed like just another typical graphics add-on, but as I discovered what a potent tool it is for Visual Studio® . NET graphical interface development, I became more and more impressed.

Marnie Hutcheson

MSDN Magazine September 2005

New Stuff: Resources for Your Developer Toolbox


Tired of spending oodles of time trying to reproduce bugs so you can then fix them? RadViewSoftware Inc. has a new addition to their Web application function and load testing tools that captures everything that goes on at the client and the server in synchronized logs.

Marnie Hutcheson

MSDN Magazine August 2005

New Stuff: Resources for Your Developer Toolbox


r.a.d.controls by telerik gives you an impressive set of great looking interface components, Visual Studio® .NET design-time support, cross-browser compatibility, keyboard support, and data binding.

Marnie Hutcheson

MSDN Magazine July 2005

New Stuff: Resources for Your Developer Toolbox


A few months ago I had a large SQL ServerT asset management database into which I had to import data from text files in daily batches. I needed to tweak the tables, add some queries, and generate new reports.

Marnie Hutcheson

MSDN Magazine June 2005

New Stuff: Resources for Your Developer Toolbox


Visual Build Professional 5. 6 by Kinook Software is a management solution for developers writing programs for Microsoft® Windows® and the Web that lets you create an automated, repeatable process for building your software.

Marnie Hutcheson

MSDN Magazine May 2005

New Stuff: Resources for Your Developer Toolbox


DbNetGrid. Net 2. 71 by DbNetLink Limited, is a Web-based grid component that works with DHTML behaviors that support both ASP and ASP. NET. The integrated DbNetGrid GUI designer application lets you create your grids without writing any code.

Marnie Hutcheson

MSDN Magazine April 2005

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend