Halaman Web
Halaman Web - Borang HTML sintaks
Borang ialah bahagian dokumen HTML di mana kawalan input (kotak teks, kotak semak, butang radio, senarai juntai bawah) diletakkan.
Halaman Web - Borang HTML contoh
<html> <body> @{ if (IsPost) { string companyname = Request["companyname"]; string contactname = Request["contactname"]; <p>You entered: <br /> Company Name: @companyname <br /> Contact Name: @contactname </p> } else { <form method="post" action=""> Company Name:<br /> <input type="text" name="CompanyName" value="" /><br /> Contact Name:<br /> <input type="text" name="ContactName" value="" /><br /><br /> <input type="submit" value="Submit" class="submit" /> </form> } } </body> </html>