Inserts button or link to a document along with code to edit the current document provided that the caller has write permission on the current document or optionally its root document.

Component properties
Category AS Security
Version 1.0
Complies with Xhtml 1.0 / 1.1 rules Unspecified or not applicable
Supported server programming languages C# Visual Basic.NET
Output content type inline

When to use

This component is typically on a Web site to test whether a user can edit a document or not, and if so, display a link to that document where the user can edit it. 

Programming interface


Redirect document.
A value that indicates a document to redirect to if permission for the caller was found.
A value that indicates a presentation template to use with the document to redirect to if permission for the caller was found. Set to zero if no presentation template should be used
Edit root
A value that indicates whether the permission of the current document or if the document is an include its ultimate parent document. The link generated will open this document for editing
Link properties
Type of link to generate
  • Link, creates a regular link.
  • Button, generates a HTML button rather than a regular link.
Link text
A value that specifies the text to display in the link.
CSS Class name
A value that contains the CSS class name that should be applied to the generated link or button
A value that specifies the target attribute of the generated link.


The component Insert link by permission is similar but provides more advanced functionality.