Difficulty: Moderately Challenging
Step1
Write the programming language you will use for the ASP code. Your options are VBScript, JavaScript and VB or C# for ASP.NET.
Classic ASP
<%@Language="VBSCript,"
ASP.NET
<%@Page Language="VB," %>
Step2
Name the HTML Header and part of BODY section
<HTML>
<HEAD>
<TITLE>Login Page</TITLE>
</HEAD>
Step3
Begin the BODY section
<BODY BGCOLOR="White" TOPMARGIN="10" LEFTMARGIN="10">
<FONT SIZE="4" FACE="ARIAL, HELVETICA">
<B>Login Page</B></FONT><BR>
<HR SIZE="1" COLOR="#000000">
Step4
Put ASP code within the HTML text
<!--Display LOGON_USER Server variable. -->
You logged in as user:<B> <%= Request. ServerVariables ("LOGON_USER") %></B>
<!--Display AUTH_TYPE Server variable. -->
<P>You were authenticated using:<B> <%= Request.ServerVariables("AUTH_TYPE")%></B> authentication. </P>
Step5
Insert the closing Tags for BODY and HTML
</BODY>
</HTML>
Step6
Save the file. Use .asp for classic ASP file and .aspx for ASP.NET file.
e.g UserCredential.asp or UserCredential.aspx