When inserted in a document, this control performs an the action against a single subscriber's subscription in Content Studio.
The following
- Activate - activates the subscription so that it can be used.
- Deactivate - deactivates the subscription.
- Remove - removes the subscription.
Background
This control works in close conjunction with the
SubscriptionLink control and is used when
building interfaces that deals with subscribers in Content Studio.
SubscriptionLink renders a link to a document
where SubscriptionLink is placed. This link contains the key query string
value. The mail sending module replaces the key value with the unique identifier
of the receiver's subscription in Content Studio. The control the executes one of its
actions when the document is loaded. This means that this control should only be used
on special action document, not on regular document. The type of action the
controls should perform is specified in
the control's
When a successful action has been performed SubscriptionAction displays the text
specified in the
If an error occurs while the action is beeing performed SubscriptionAction displays the
text specified in the
Examples
This sample shows how to insert the SubscriptionAction control. In this case, when the document that hosts the control is loaded, all subscriptions, whose identifier are passed in in the key query string, will be activated.
HTML<csx:SubscriptionAction RunAt="Server"
Action="Activate"
SuccessText="You have successfully activated your subscription!"
ErrorText="Wrong data supplied" />
See also
SubscriptionLink control.