ASP Net - ASP.NET Web Pages - Example Basic HTML Form In VB


!DOCTYPE html>

html>

body>

@if (IsPost) Dim companyname = Request("CompanyName") Dim contactname = Request("ContactName")

@

p>You entered:

Company Name: @companyname
Contact Name: @contactname /p>

else

@

Company Name:

input type="text" name="CompanyName" value="">
Contact Name:

input type="text" name="ContactName" value="">

input type="submit" value="Submit" class="submit">

/form>

end if


Put a < in front


Result


Company Name:


In The Box Type Company Name


Contact Name:


In The Box Type Contact Name


Then Press The Submit button

Go back