General - .NET User Groups General issues with editing, development and graphic design.
Kentico CMS for .NET User Groups > General - .NET User Groups > Add user control in to tranformation View modes: 
User avatar
Member
Member
Manisha - 8/26/2011 6:00:04 AM
   
Add user control in to tranformation
The following is created user control in web application emailafriend.ascx.We can add an user control in transformation for customzing webpart.

Transformation markup:
<%@ Register TagPrefix="custom" TagName="EmailAFriend" Src="~/CMSWebParts/HomeLearningCollege/emailafriend.ascx" %>
<div class="blog" >
<h2><%# Eval("BlogPostTitle", true) %></h2>
<div class="bookmark">
<custom:EmailAFriend id="uscEmailAFriend" runat="server"
PageUrl='<%# UrlHelper.GetAbsoluteUrl(GetDocumentUrl())%>'
PageTitle='<%# Eval("BlogPostTitle") %>' />
</div>
</div>

User avatar
Member
Member
kentico_michal - 8/30/2011 2:02:32 AM
   
RE:Add user control in to tranformation
Hello,

I am not sure if I am getting this right. Could you please describe it in more detail?

However, it should be possible to use a custom user control in a transformation.

Do you encounter any issue or do you receive any error message?

Do you use portal engine or aspx templates? Thank you.

Best regards,
Michal Legen