Welcome to Vortx Community Forum, where you can ask questions and receive answers from the staff at Vortx and other members of the community.

If you had a user account on our previous forums website, you will need to register a new account here.

Learn more about...


Using a control (ascx) in an xml.config file

I have a control that I want to use within an xml.config file (page.default.xml.config). Is theere a way to do this and what is the proper syntAx?



asked Feb 14, 2016 in MultiStore by AbbottF (380 points)

1 Answer

0 votes
You can't invoke a control/page from within an XML package.  There's a way to put C# code in XmlPackages if the control is only doing a tiny bit of work (though it'd be better to leave it in outside code & call it with an XSLTExtensionBase function), or you could load the control in a .aspx page and embed it in an iframe.
answered Feb 15, 2016 by Vortx ScottS (13,500 points)