ASPX templates
Version 4.x > ASPX templates > Document type - PDF link View modes: 
User avatar
Member
Member
celsopaulo_bronze-hotmail - 1/21/2010 1:42:31 AM
   
Document type - PDF link
Hi

I´ve created a new document type and one of the attributes is an Upload file field type, that alow users to upload a PDF file. In default transformation I want that a link appear so that the users can click and open the PDF file within the browser. Please somebody tell how can I do that.

Thanks


User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 1/21/2010 4:19:34 AM
   
RE:Document type - PDF link
Hello,

You may use the function:

<%# GetFileUrl("FieldName") %>

to get the URL of the file.

The sample code is here:
Writing transformation article


Best regards,
Helena Grulichova

User avatar
Member
Member
celsopaulo_bronze-hotmail - 1/28/2010 5:48:01 AM
   
RE:Document type - PDF link
Hello,
Tanks for your help,this solution is working well
thanks