Virtual Happy Hour this month, Jun 28, we'll be getting a sneak preview at our soon to launch SaaS CMS!

Try our conversational search powered by Generative AI!

Dynamic content - Render linkbutton and capture event?



Is it possible to use Dynamic content and render an ASP.NET LinkButton and somehow capture the event when someone clicks the button? Or is Dynamic content just meant for outputting data, without interactivity?

If it is indeed possible, I would appreciate some small code sample to get me on the right track.



Nov 30, 2011 14:25


You can use a usercontrol (.ascx) as dynamic content. Not for just ouput but also user interaction. Here is an great article

Dec 01, 2011 1:22


I guess I will have to return a reference to a user control in the implemented method GetControl, and return true in RendersWithControl.

Dec 01, 2011 9:06

Either that or turn the user control directly into a dynamic content plugin:

Doing it the "old school" way gives you more control though, and beware that there is a flaw in the implementation of property storage when you use the decoreate-usercontrol-approach that will garble up your data if you add a property to your dynamic content at a later stage:

Dec 01, 2011 9:48
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.