Ravi! Solution:
<%!! Escape:Text(<%att_med_pdf_filename%>.Substring(Escape:Text( <%att_med_pdf_filename%>).LastIndexOf(.)) !!%> On Monday, August 6, 2012 5:10:27 PM UTC-7, Ravi Garg wrote: > > Currently I'm using PreExecute code with ASP function to get the file > extension from an Attribute(Media) placeholder. Pls see the code below > <%=GetFileExtension("<%att_med_pdf_filename%>")%> > > I would like to get the same result using render tag, Is that possible > with something like the code below? > Context:CurrentPage.Elements.GetElement(att_med_pdf_filename).Value > > Thanks, > Ravi > > > > -- You received this message because you are subscribed to the Google Groups "RedDot CMS Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/reddot-cms-users/-/ki7mYT5sYwAJ. To post to this group, send email to reddot-cms-users@googlegroups.com. To unsubscribe from this group, send email to reddot-cms-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/reddot-cms-users?hl=en.