SingleNews.ascx is an obsolete template and if you are using the new control called NewsView.ascx it will have no effect as you've said because the template is not used. The reason you are getting the URL as you do is in the fact that ASP.NET by default uses VB.NET and "this" is a C# keyword (yes, we need to clarify this in the manual - sorry). To go around this, you can do one of the two following things:
1. Change "this" to "Me" which is VB.NET keyword:
|<asp:HyperLink ID="PDFAttachment" runat="server" NavigateUrl='<% = Me.Text %>'></asp:HyperLink>
2. Change the language of the template (ListPageMaster.ascx) by adding this at the top of the file:
|<%@ Control Language="C#" %>
While this should work, admittedly this approach is rather limited. I've developed a sample control on my blog that you can use to map any meta field value to any property of any control inside a template. You can find more about this control and download it from here:
I hope you'll find this information helpful. Let us know if there is anything else we can do for you.
the Telerik team
Check out Telerik Trainer
, the state of the art learning tool for Telerik products.