Blog: Time to reflect

ConvertSelectedTextToAssociatedLabel Macro

Added by Fons Sonnemans on 09-Oct-2007

I have created a new Visual Studio 2005 Macro which can be used to convert a literal text to an asp:Label that is associated to the next control. You first have to select the text and then Run the ConvertSelectedTextToAssociatedLabel Macro. In the example below the text Age: is selected.

The result is an asp:Label with the correct Text and AssociatedControlID attributes.

Download Zipfile


« Previous Entries  Next Entries »