User loginRecent blog posts
|
The ZNode.Libraries.Framework.Business.ZNodeTemplate referenceSo, here is the set-up... I need to dynamically add a custom user control (ASCX) at run-time, based on the page that a user is on. If they are on a page that displays a product, something extra appears at the top. If they are checking out, or signing up for the newsletter, or whatever, and there is no product on the page, the control should NOT appear. No problem. The control already works great running from common\main.master, but it needs to be added/removed on the fly as it does not make sense on any page except where a product appears (yet it is up in the header, so can't be placed directly into product.ascx). It's easy enough to dynamically add a control (i.e. "Controls.Add(ucDetails)"), but to do so, I need to have a CodeBehind for main.master: main.master.cs However, main.master already inherits from "ZNode.Libraries.Framework.Business.ZNodeTemplate". My question: Can main.master be safely changed to inherit from a CodeBehind class? In other words, would this work?
instead of:
I have no idea if ZNodeTemplate is "essential" to the application or just serves as a placeholder, since it doesn't look like the source code for that library is included in the product. So, is there anything in there I need to preserve, or can I convert that page to a code-behind? Thanks for any pointers on ZNodeTemplate that you might have. Mark
|
SearchQuick Links |