TagName collision
Hi,
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" %>
Hi Thomas,
Thank you for contacting us.
The problem is the same Class names used for your widgets. When we build the markup the pages and register widget tags in the page to be rendered we use the class name to construct the registration directive and the name of the ASCX file if you are using user controls. We are working on a solution for this however I cannot give you a time frame at the moment. As a workaround you can try renaming the class name and ascx file of one of the widgets.
Kind regards,
Radoslav Georgiev
the Telerik team
Has this ever been resolved because I am seeing the issue in product version 6.3.5000.0.
Hi Lori,
In order to have this work, you can use custom widget instead of user widget.
More information about registering them in the toolbox is available here.
Regards,
Svetoslav Manchev
Telerik