Vulnerability in EPiServer.Forms
I'm creating a page type (using PageTypeBuilder) and I call it ProductImagePage.
One property of this class is DownloadCount, which is incremented automatically via code when the Download button is clicked.
How do I set this property to read-only on the admin panel? Come to think of it, can I set and modify its value during run-time and will it persist in the database?
Looking forward for any help I can get. Thanks.
If you uncheck the "Visible in Editmode" checkbox, the property will not be visible for Editors/Admins in edit mode.
If you're running EPiServer CMS 6 or above I would consider using the dynamic data store for this instead. See for instance this blog post: Using the DynamicDataStore to count file downloads.
Thanks Guys. I only have littie time with my EPiServer project so I guess I could explore DDS later.