Appendix: Using the WITHQUERY Element Tag
WITHQUERY enables you to append or update a query string to the site URL. This can also be used to optionally override the current URL.
This element tag has the following default syntax:
<%# WITHQUERY(Url, Key, Value) %>
The following parameters are required:
Parameter | Description |
---|---|
Key | The key to add. |
Value | The value to assign the key. |
The following parameters are optional:
Parameter | Description |
---|---|
Url | A URL to override the site's default URL. |
An example of a complete WITHQUERY tag is as follows:
<%# WITHQUERY(Url="https://example.com" Key="lang" Value="en-GB") %>