G
GoCMS
Hi, guys:
I am trying debug other people(who has left company)'s ASP code, and had
difficulty understanding the use of a hidden asp page.
The application has an index page, like MyIndex.asp which has nothing but
a couple of other asp files, like
<frameset COLS="0,0,52%, *">
<frame NAME="hidden" SRC="MyHidden.asp">
<frame NAME="content" SRC="MyContent.asp">
</frameset>
MyHidden.asp is like this:
<!-- #include file="MyHidden.js" -->
<SCRIPT LANGUAGE=VBScript RUNAT=Server>
' a LOT of server code retrieving data from database, and populate to
local variables.
Response.Write("<HTML><HEAD><TITLE></TITLE>")
Response.Write("<meta http-equiv='Content-Type' content='text/html'>")
Response.Write("</HEAD><BODY onBeforeUnLoad='unLoadForm()'>")
Response.Write("<FORM name='MyForm' ACTION='MyHidden.asp' METHOD=POST>")
Response.Write("<TEXTAREA NAME='txtStatus'>" & sStatus & "</TEXTAREA>")
Response.Write("<INPUT TYPE='text' NAME='txtCommand' VALUE=" & sCmd & ">")
Response.Write("<INPUT TYPE='text' NAME='txtSubmitToManager' VALUE=0>")
Response.Write("<INPUT TYPE='text' NAME='txtReadOnly' VALUE=" & bReadOnly
& ">")
Response.Write("<INPUT TYPE='text' NAME='txtCount' VALUE=" & iCnt & ">")
Response.Write("<INPUT TYPE='text' NAME='txtUserId' VALUE=" & nTimeTrackId
& ">")
Response.Write("</FORM>")
Response.Write("</BODY></HTML>")
My question is: with all these "response.write" in MyHidden.asp, I don't
actually see them anywhere on the web page, nor do I know what this hidden
form is for.
What if I want to check the values of some variables? When I added one
more Response.Write( "iCnt=" & iCnt ), the page gives me error.
So... can somebody help me interpret the code? Thanks!
I am trying debug other people(who has left company)'s ASP code, and had
difficulty understanding the use of a hidden asp page.
The application has an index page, like MyIndex.asp which has nothing but
a couple of other asp files, like
<frameset COLS="0,0,52%, *">
<frame NAME="hidden" SRC="MyHidden.asp">
<frame NAME="content" SRC="MyContent.asp">
</frameset>
MyHidden.asp is like this:
<!-- #include file="MyHidden.js" -->
<SCRIPT LANGUAGE=VBScript RUNAT=Server>
' a LOT of server code retrieving data from database, and populate to
local variables.
Response.Write("<HTML><HEAD><TITLE></TITLE>")
Response.Write("<meta http-equiv='Content-Type' content='text/html'>")
Response.Write("</HEAD><BODY onBeforeUnLoad='unLoadForm()'>")
Response.Write("<FORM name='MyForm' ACTION='MyHidden.asp' METHOD=POST>")
Response.Write("<TEXTAREA NAME='txtStatus'>" & sStatus & "</TEXTAREA>")
Response.Write("<INPUT TYPE='text' NAME='txtCommand' VALUE=" & sCmd & ">")
Response.Write("<INPUT TYPE='text' NAME='txtSubmitToManager' VALUE=0>")
Response.Write("<INPUT TYPE='text' NAME='txtReadOnly' VALUE=" & bReadOnly
& ">")
Response.Write("<INPUT TYPE='text' NAME='txtCount' VALUE=" & iCnt & ">")
Response.Write("<INPUT TYPE='text' NAME='txtUserId' VALUE=" & nTimeTrackId
& ">")
Response.Write("</FORM>")
Response.Write("</BODY></HTML>")
My question is: with all these "response.write" in MyHidden.asp, I don't
actually see them anywhere on the web page, nor do I know what this hidden
form is for.
What if I want to check the values of some variables? When I added one
more Response.Write( "iCnt=" & iCnt ), the page gives me error.
So... can somebody help me interpret the code? Thanks!