|
|
|
|
|
- Overview
- Finding out and modifying the caption (server code)
- Retrieving and modifying the URL of the link (for a "mailto" link in server code)
Manipulating Link controls programmatically (Page)
WEBDEV allows you to manipulate a Link control programmatically. To do so, use the variable of the Link control in the code. The variable of the Link control corresponds to name of the control. A Link control is always a Text control. Finding out and modifying the caption (server code) To handle the caption of a Link control, use the Caption property. For example, the following line of code modifies the caption of the LINK_Email control: LIEN_Email.Libellé = "Ecrivez-moi directement"
Remark: If the "..Value represents the link URL" option is unchecked ("Detail" tab of the link description), the link label can also be known by the Value property. Retrieving and modifying the URL of the link (for a "mailto" link in server code) To handle the URL of a "MailTo" type Link control, simply use the URL property. For example, the following line of code modifies the email address of the LINK_Email control: LIEN_Email.URL = "adresse@laposte.net"
Remark: If the "..Value represents the link URL" option is checked ("Detail" tab of the link description), the link URL can also be known by the Value property.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|