|
|
|
|
- Overview
- Displaying an information in an HTML control
- HTML control in a page (server code)
- Retrieving the value of an HTML control
- Page control
- HTML control properties
Handling an HTML control through programming
The HTML control can be handled through programming. To do so, use the variable of the HTML control in the code. The variable of HTML control corresponds to the name of HTML control. The variable type is a character string. Displaying an information in an HTML control HTML control in a page (server code) To display an information in an HTML control, a simple assignment is sufficient. For example: - Direct assignment:
HTM_WebPage = "Name of Web user"
let sMyPage = [ <a href="http://www.windev.com" target="_blank"> PC SOFT</a> ] HTM_Site = sMyPage
- Assignment by variable:
- Assignment by calculation:
HTM_Name = "Customer name: " + NoSpace(CUSTOMER.LASTNAME) + TAB + NoSpace(CUSTOMER.FIRSTNAME)
You can also use the Value property. Retrieving the value of an HTML control Page control To retrieve the content of an HTML control (the user can enter values in the control): - Simply assign a value. For example:
HTMLContent = HTM_HTMLControl
- Use the Value property.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|