API Questions on Kentico API.
Version 5.x > API > Get AttachmentGuid from URL View modes: 
User avatar
Certified Developer 8
Certified Developer 8
Jiveabillion - 12/5/2011 12:20:05 PM
   
Get AttachmentGuid from URL
Is there a built in class or method of retrieving the attachment guid for a file or document attachment by using the URL?

User avatar
Member
Member
kentico_michal - 12/6/2011 2:21:31 AM
   
RE:Get AttachmentGuid from URL
Hello,

If you mean that you want to get the AttachmentGUID from the Url, you will need to write your custom code, parse the Url and get the GUID. Then, if you have GUID in the string format, you can use the ValidationHelper.GetGuid method to convert it to the Guid:

Guid instanceGuid = ValidationHelper.GetGuid(stringGuid, Guid.Empty);


Best regards,
Michal Legen