Metode Write ASP
Definisi dan Penggunaan
Metode Write menulis sebuah string yang ditentukan ke output.
Sintaks
Response.Write variant
Parameter | Deskripsi |
---|---|
variant | Diperlukan. Data yang harus ditulis. |
Contoh
Contoh 1
<% Response.Write "Hello World" %>
Output:
Hello World
Contoh 2
<% name="John" Response.Write(name) %>
Output:
John
Contoh 3
<% Response.Write("Hello<br />Dunia") %>
Output:
Hello Dunia