Here's the scenario: I create 2 widgets that I add to the toolbox.
My widget namespaces / paths are as follows: ProjectName.Widgets.Widget1.Main and Projectname.Widgets.Widget2.Main
However, this generates the following code if both widgets are placed on the same page:
<%@ Register TagPrefix="sf" TagName="Main" Src="~/Widgets/Widget1/Main.ascx" %>
<%@ Register TagPrefix="sf" TagName="Main" Src="~/Widgets/Widget2/Main.ascx" %>
This results in a conflict when viewing the page on the front side:
Description: An error occurred during the parsing of
a resource required to service this request. Please review the
following specific parse error details and modify your source file
Parser Error Message: The 'sf:Main' tag has already been registered.
However, it works fine in the back office and in preview mode.
I understand I could name my controls differently to avoid this, but I thought it would be good if SF could handle this (and generate unique TagNames for each widget, use the widget name rather than control name, or something).