Slide 6.3: Microsoft ASP.NET
Slide 6.5: Microsoft ASP.NET technologies
Home

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:

<html><body>
  @{
    if ( IsPost ) { 
      string companyname = Request["CompanyName"]; 
      string contactname = Request["ContactName"]; 
      You entered:
      Company Name: @companyname
      Contact Name: @contactname
    }
    else {
      <form method="post" action="">
        Company Name:
        <input type="text" name="CompanyName" value="">
        Contact Name:
        <input type="text" name="ContactName" value="">
        <input type="submit" value="Submit" class="submit">
      </form> 
    }
  }
</body></html>