ASP.NET Web Pages – HTML Forms
A form is a section of an HTML document where you put input controls (text boxes, check boxes, radio buttons, and pull-down lists) Example: <!DOCTYPE html> <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> …
Read more