Forum Moderators: open
Cannot process file
/apspatiala/Login.asp, line 1
************************************************
<HTML>
<HEAD>
<SCRIPT LANGUAGE=javascript>
<!--
function validate()
{
if(document.f1.uname.value =="")
{
alert("Please Enter User Name");
f1.uname.focus();
return false;
}
if(document.f1.password.value =="")
{
alert("Please Enter Password");
f1.password.focus();
return false;
}
}
-->
</SCRIPT>
</HEAD>
<BODY >
<p align=center><IMG src=/Images/Prinicipal.jpg ALT="Principal Login"></p>
<p><IMG SRC="/Images/Staff_side.jpg" ALIGN=right ALT="Staff"></p>
<hr color=crimson>
<FORM action="login_Access.asp" method=post name=f1 onSubmit="return validate();">
<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=1 align=center>
<TR>
<TH align=left style="COLOR: crimson">User Name:</TH>
<TD><INPUT name=uname ></TD>
</TR>
<TR>
<TH align=left style="COLOR: crimson">Password:</TH>
<TD><INPUT type="password" name=password></TD>
</TR>
<TR>
<TH align=left></TH>
<TD>
<INPUT type="submit" value="Log In" style="FONT-WEIGHT: bold; BORDER-LEFT-COLOR: crimson; BORDER-BOTTOM-COLOR: crimson; WIDTH: 100px; COLOR: crimson; BORDER-TOP-COLOR: crimson; FONT-FAMILY: verdana; HEIGHT: 24px; BACKGROUND-COLOR: lavenderblush; BORDER-RIGHT-COLOR: crimson" size=33>
</TD>
</TR>
</TABLE>
</FORM>
<hr color=crimson>
<center>
<FORM action="Staff.asp" method=post id=form1 name=form1>
<INPUT type="submit" value="Back" id=submit1 name=submit1 style="FONT-WEIGHT: bold; BORDER-LEFT-COLOR: crimson; BORDER-BOTTOM-COLOR: crimson; WIDTH: 101px; COLOR: crimson; BORDER-TOP-COLOR: crimson; FONT-FAMILY: verdana; HEIGHT: 24px; BACKGROUND-COLOR: lavenderblush; BORDER-RIGHT-COLOR: crimson" size=26>
</FORM>
</center>
</BODY>
</HTML>
Active Server Pages error 'ASP 0239'
Cannot process file/apspatiala/Login.asp, line 1
This error means that your file was saved in UNICODE format. By design, ASP parsing engines can't process UNICODE documents (I don't know the rationale, I just know it was designed that way).
You need to re-save the file in ANSI format before it will run. Probably the easiest way to do this is to open the file with Notepad, then do File->Save As, then change the Encoding: box from UNICODE to ANSI and save over the original file.
HTH
-Moz