Looking for old forum posts and information? View the old forum archive here ยป
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.

A static copy of our previous forums website is available online for reference. Click here to access the forum archive.

Learn more about...

AspDotNetStorefront
DotFeed

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?

 

Thanks

Abbott
asked Feb 14, 2016 in MultiStore by AbbottF (360 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,380 points)
...