Portal Engine
Version 3.x > Portal Engine > Code Behinds with Transformations View modes: 
User avatar
Member
Member
chris-ricochetpartners - 11/10/2008 7:30:47 PM
   
Code Behinds with Transformations
I need to add buttons to a transformation. Where would I handle the click events as the transformations don't seem to have code-behind files?

User avatar
Kentico Consulting
Kentico Consulting
kentico_mirekr - 11/11/2008 4:14:43 AM
   
RE:Code Behinds with Transformations
Hi,

This can be achieved using your custom button control in the transformation.

Example code:

<%@ Register Src="~/mycontrols/button.ascx" TagName="Button" TagPrefix="uc1" %>
<uc1:Button ID="button1" runat="server" />

Then you can perform button events in the file ~/mycontrols/button.ascx.cs.

Best Regards,
Miroslav Remias