Microsoft ASP.NET (Cont.)

Microsoft ASP (Active Server Pages)
It is an HTML page that includes one or more scripts (small embedded programs) that are processed on a Microsoft web server before the page is sent to the user.

Microsoft ASP.NET
It is part of Microsoft’s .NET platform and is the successor to ASP technology. ASP.NET is a free technology that allows programmers to create dynamic web applications. ASP.NET can be used to create anything from small, personal websites through to large, enterprise-class web applications.
The following is an ASP.NET example:

01<html><body>
02  @{
03    if ( IsPost ) {
04      string companyname = Request["CompanyName"];
05      string contactname = Request["ContactName"];
06      You entered:
07      Company Name: @companyname
08      Contact Name: @contactname
09    }
10    else {
11      <form method="post" action="">
12        Company Name:
13        <input type="text" name="CompanyName" value="">
14        Contact Name:
15        <input type="text" name="ContactName" value="">
16        <input type="submit" value="Submit" class="submit">
17      </form>
18    }
19  }
20</body></html>