Forum Moderators: open

Message Too Old, No Replies

Active Server Pages error 'ASP 0239'

code inside

         

baistopgun

4:49 am on Oct 13, 2004 (gmt 0)

10+ Year Member



Active Server Pages error 'ASP 0239'

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>

MozMan

4:14 pm on Oct 13, 2004 (gmt 0)

10+ Year Member



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

baistopgun

5:25 pm on Oct 13, 2004 (gmt 0)

10+ Year Member



hi ok i got u r point MOZ but one problem i am using an editor ok not just simple text editor (notepad) ok so now when i try to use save as it shows 4 options
HTML,APS ,UNICODE HTML, UNICODE ASP i tried to use notpad but they donot save it as ANSI format what u suggest now

MozMan

5:31 pm on Oct 13, 2004 (gmt 0)

10+ Year Member



hmm... which editor are you using?

The second option you listed, you worte "APS" if that is actually "ASP" then that might be your ANSI option...

-Moz

baistopgun

5:38 pm on Oct 13, 2004 (gmt 0)

10+ Year Member



hi i am using interdev i saved it as ASP unicode
sorry for spelling ealeir u know writing mistakes hahaha anywayz its still not working sooooooo nowwwwwwww

mattglet

6:29 pm on Oct 13, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Just save as regular ASP, and not Unicode ASP. You should be fine with that.

baistopgun

6:53 pm on Oct 13, 2004 (gmt 0)

10+ Year Member



hey thank i have saved it as normal asp file and it worked thanx buddy thank u all take care byeeeeeeeeee