Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

ASP 0113 Error When Upgraded to IIS 6

 
   Web Hosting and Web Master Forums (Home) -> IIS RSS
Next:  event 7022 iis  
Author Message
mis

External


Since: Aug 28, 2003
Posts: 1



(Msg. 1) Posted: Thu Aug 28, 2003 9:07 am
Post subject: ASP 0113 Error When Upgraded to IIS 6
Archived from groups: microsoft>public>inetserver>iis (more info?)

I upgraded my server from W2k to W2k3 which houses my
intranet. Prior to the upgrade I had no problems with IIS
5 serving ASP pages, but now my ASP pages hang and
returns this error:

Active Server Pages error 'ASP 0113'

Script timed out

/FocusReport.asp

The maximum amount of time for a script to execute was
exceeded. You can change this limit by specifying a new
value for the property Server.ScriptTimeout or by
changing the value in the IIS administration tools.

Thanks for any help you can provide.

 >> Stay informed about: ASP 0113 Error When Upgraded to IIS 6 
Back to top
Login to vote
user641

External


Since: Aug 22, 2003
Posts: 1637



(Msg. 2) Posted: Thu Aug 28, 2003 12:17 pm
Post subject: Re: ASP 0113 Error When Upgraded to IIS 6 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Teddy" <mis.TakeThisOut@thehickman.org> wrote in message
news:0ab101c36d65$5e8513d0$a601280a@phx.gbl...
 > I upgraded my server from W2k to W2k3 which houses my
 > intranet. Prior to the upgrade I had no problems with IIS
 > 5 serving ASP pages, but now my ASP pages hang and
 > returns this error:
 >
 > Active Server Pages error 'ASP 0113'
 >
 > Script timed out

You'll have to figure out where in your code the script is timing out.
Perhaps you can start with something simple and build it up until it hangs
....

--
Tom Kaminski IIS MVP
<a style='text-decoration: underline;' href="http://www.iistoolshed.com/" target="_blank">http://www.iistoolshed.com/</a> - tools, scripts, and utilities for running IIS
<a style='text-decoration: underline;' href="http://mvp.support.microsoft.com/" target="_blank">http://mvp.support.microsoft.com/</a>
<a style='text-decoration: underline;' href="http://www.microsoft.com/windowsserver2003/community/centers/iis/" target="_blank">http://www.microsoft.com/windowsserver2003/community/centers/iis/</a><!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: ASP 0113 Error When Upgraded to IIS 6 
Back to top
Login to vote
mis1

External


Since: Aug 28, 2003
Posts: 3



(Msg. 3) Posted: Thu Aug 28, 2003 12:17 pm
Post subject: Re: ASP 0113 Error When Upgraded to IIS 6 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thanks for the reply. I not sure if this matters but I'd like to
mention that if I reboot the server the ASP pages will work fine for a
few hours. But as employees access the page the ASP 0113 error will
return.



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 >> Stay informed about: ASP 0113 Error When Upgraded to IIS 6 
Back to top
Login to vote
user641

External


Since: Aug 22, 2003
Posts: 1637



(Msg. 4) Posted: Thu Aug 28, 2003 2:18 pm
Post subject: Re: ASP 0113 Error When Upgraded to IIS 6 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Teddy Chase" <mis.TakeThisOut@thehickman.org> wrote in message
news:u$WFDLXbDHA.2668@TK2MSFTNGP09.phx.gbl...
 > Thanks for the reply. I not sure if this matters but I'd like to
 > mention that if I reboot the server the ASP pages will work fine for a
 > few hours. But as employees access the page the ASP 0113 error will
 > return.

It doesn't matter until you figure out what is timing out...

--
Tom Kaminski IIS MVP
<a style='text-decoration: underline;' href="http://www.iistoolshed.com/" target="_blank">http://www.iistoolshed.com/</a> - tools, scripts, and utilities for running IIS
<a style='text-decoration: underline;' href="http://mvp.support.microsoft.com/" target="_blank">http://mvp.support.microsoft.com/</a>
<a style='text-decoration: underline;' href="http://www.microsoft.com/windowsserver2003/community/centers/iis/" target="_blank">http://www.microsoft.com/windowsserver2003/community/centers/iis/</a><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: ASP 0113 Error When Upgraded to IIS 6 
Back to top
Login to vote
timcof

External


Since: Sep 02, 2003
Posts: 912



(Msg. 5) Posted: Thu Sep 04, 2003 10:45 am
Post subject: RE: ASP 0113 Error When Upgraded to IIS 6 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

post the code to microsoft.public.inetserver.asp.general to see if they see anything suspect.

Thank you. I hope this information is helpful.

Tim Coffey [MSFT]

This posting is provided “AS IS” with no warranties, and confers no rights. You assume all risk for your use. © 2001 Microsoft
Corporation. All rights reserved.
--------------------
| Content-Class: urn:content-classes:message
| From: "Teddy" <mis.DeleteThis@thehickman.org>
| Sender: "Teddy" <mis.DeleteThis@thehickman.org>
| Subject: ASP 0113 Error When Upgraded to IIS 6
| Date: Thu, 28 Aug 2003 06:07:44 -0700
| Lines: 17
| Message-ID: <0ab101c36d65$5e8513d0$a601280a@phx.gbl>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Thread-Index: AcNtZV6F1eSNRv1zQ3WXCitLlLYeVA==
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Newsgroups: microsoft.public.inetserver.iis
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.inetserver.iis:272778
| NNTP-Posting-Host: TK2MSFTNGXA14 10.40.1.166
| X-Tomcat-NG: microsoft.public.inetserver.iis
|
| I upgraded my server from W2k to W2k3 which houses my
| intranet. Prior to the upgrade I had no problems with IIS
| 5 serving ASP pages, but now my ASP pages hang and
| returns this error:
|
| Active Server Pages error 'ASP 0113'
|
| Script timed out
|
| /FocusReport.asp
|
| The maximum amount of time for a script to execute was
| exceeded. You can change this limit by specifying a new
| value for the property Server.ScriptTimeout or by
| changing the value in the IIS administration tools.
|
| Thanks for any help you can provide.
|
 >> Stay informed about: ASP 0113 Error When Upgraded to IIS 6 
Back to top
Login to vote
mis1

External


Since: Aug 28, 2003
Posts: 3



(Msg. 6) Posted: Thu Sep 04, 2003 10:45 am
Post subject: RE: ASP 0113 Error When Upgraded to IIS 6 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I have included the code. Thank you.


<%@LANGUAGE="VBSCRIPT"%>
<!--#include file="Connections/Residents.asp" -->
<!--#include file="Connections/Employees.asp" -->
<!--#include file="Connections/FocusCare.asp" -->
<!--#include file="Connections/FocusCare.asp" -->
<%
' *** Edit Operations: declare variables

Dim MM_editAction
Dim MM_abortEdit
Dim MM_editQuery
Dim MM_editCmd

Dim MM_editConnection
Dim MM_editTable
Dim MM_editRedirectUrl
Dim MM_editColumn
Dim MM_recordId

Dim MM_fieldsStr
Dim MM_columnsStr
Dim MM_fields
Dim MM_columns
Dim MM_typeArray
Dim MM_formVal
Dim MM_delim
Dim MM_altVal
Dim MM_emptyVal
Dim MM_i

MM_editAction = CStr(Request.ServerVariables("SCRIPT_NAME"))
If (Request.QueryString <> "") Then
MM_editAction = MM_editAction & "?" & Request.QueryString
End If

' boolean to abort record edit
MM_abortEdit = false

' query string to execute
MM_editQuery = ""
%>
<%
' *** Insert Record: set variables

If (CStr(Request("MM_insert")) = "FrmSubmit") Then

MM_editConnection = MM_FocusCare_STRING
MM_editTable = "Results"
MM_editRedirectUrl = "FocusReport.asp"
MM_fieldsStr =
"ReportDate|value|Resident|value|Employee|value|FocusCareLog|value"
MM_columnsStr =
"ReportDate|',none,''|Resident|',none,''|Employee|',none,''|FocusReport|
',none,''"

' create the MM_fields and MM_columns arrays
MM_fields = Split(MM_fieldsStr, "|")
MM_columns = Split(MM_columnsStr, "|")

' set the form values
For MM_i = LBound(MM_fields) To UBound(MM_fields) Step 2
MM_fields(MM_i+1) = CStr(Request.Form(MM_fields(MM_i)))
Next

' append the query string to the redirect URL
If (MM_editRedirectUrl <> "" And Request.QueryString <> "") Then
If (InStr(1, MM_editRedirectUrl, "?", vbTextCompare) = 0 And
Request.QueryString <> "") Then
MM_editRedirectUrl = MM_editRedirectUrl & "?" &
Request.QueryString
Else
MM_editRedirectUrl = MM_editRedirectUrl & "&" &
Request.QueryString
End If
End If

End If
%>
<%
' *** Insert Record: construct a sql insert statement and execute it

Dim MM_tableValues
Dim MM_dbValues

If (CStr(Request("MM_insert")) <> "") Then

' create the sql insert statement
MM_tableValues = ""
MM_dbValues = ""
For MM_i = LBound(MM_fields) To UBound(MM_fields) Step 2
MM_formVal = MM_fields(MM_i+1)
MM_typeArray = Split(MM_columns(MM_i+1),",")
MM_delim = MM_typeArray(0)
If (MM_delim = "none") Then MM_delim = ""
MM_altVal = MM_typeArray(1)
If (MM_altVal = "none") Then MM_altVal = ""
MM_emptyVal = MM_typeArray(2)
If (MM_emptyVal = "none") Then MM_emptyVal = ""
If (MM_formVal = "") Then
MM_formVal = MM_emptyVal
Else
If (MM_altVal <> "") Then
MM_formVal = MM_altVal
ElseIf (MM_delim = "'") Then ' escape quotes
MM_formVal = "'" & Replace(MM_formVal,"'","''") & "'"
Else
MM_formVal = MM_delim + MM_formVal + MM_delim
End If
End If
If (MM_i <> LBound(MM_fields)) Then
MM_tableValues = MM_tableValues & ","
MM_dbValues = MM_dbValues & ","
End If
MM_tableValues = MM_tableValues & MM_columns(MM_i)
MM_dbValues = MM_dbValues & MM_formVal
Next
MM_editQuery = "insert into " & MM_editTable & " (" & MM_tableValues &
") values (" & MM_dbValues & ")"

If (Not MM_abortEdit) Then
' execute the insert
Set MM_editCmd = Server.CreateObject("ADODB.Command")
MM_editCmd.ActiveConnection = MM_editConnection
MM_editCmd.CommandText = MM_editQuery
MM_editCmd.Execute
MM_editCmd.ActiveConnection.Close

If (MM_editRedirectUrl <> "") Then
Response.Redirect(MM_editRedirectUrl)
End If
End If

End If
%>
<%
Dim CurrentResidents
Dim CurrentResidents_numRows

Set CurrentResidents = Server.CreateObject("ADODB.Recordset")
CurrentResidents.ActiveConnection = MM_Residents_STRING
CurrentResidents.Source = "SELECT FullName FROM
QryCurrentResidentsFullName ORDER BY FullName ASC"
CurrentResidents.CursorType = 0
CurrentResidents.CursorLocation = 2
CurrentResidents.LockType = 1
CurrentResidents.Open()

CurrentResidents_numRows = 0
%>
<%
Dim CurrentStaff
Dim CurrentStaff_numRows

Set CurrentStaff = Server.CreateObject("ADODB.Recordset")
CurrentStaff.ActiveConnection = MM_Employees_STRING
CurrentStaff.Source = "SELECT * FROM FullName ORDER BY Employee ASC"
CurrentStaff.CursorType = 0
CurrentStaff.CursorLocation = 2
CurrentStaff.LockType = 1
CurrentStaff.Open()

CurrentStaff_numRows = 0
%>
<%
Dim FocusLogs
Dim FocusLogs_numRows

Set FocusLogs = Server.CreateObject("ADODB.Recordset")
FocusLogs.ActiveConnection = MM_FocusCare_STRING
FocusLogs.Source = "SELECT * FROM Results ORDER BY ID DESC"
FocusLogs.CursorType = 0
FocusLogs.CursorLocation = 2
FocusLogs.LockType = 1
FocusLogs.Open()

FocusLogs_numRows = 0
%>
<%
Dim Repeat1__numRows
Dim Repeat1__index

Repeat1__numRows = 30
Repeat1__index = 0
FocusLogs_numRows = FocusLogs_numRows + Repeat1__numRows
%>
<%
' *** Recordset Stats, Move To Record, and Go To Record: declare stats
variables

Dim FocusLogs_total
Dim FocusLogs_first
Dim FocusLogs_last

' set the record count
FocusLogs_total = FocusLogs.RecordCount

' set the number of rows displayed on this page
If (FocusLogs_numRows < 0) Then
FocusLogs_numRows = FocusLogs_total
Elseif (FocusLogs_numRows = 0) Then
FocusLogs_numRows = 1
End If

' set the first and last displayed record
FocusLogs_first = 1
FocusLogs_last = FocusLogs_first + FocusLogs_numRows - 1

' if we have the correct record count, check the other stats
If (FocusLogs_total <> -1) Then
If (FocusLogs_first > FocusLogs_total) Then
FocusLogs_first = FocusLogs_total
End If
If (FocusLogs_last > FocusLogs_total) Then
FocusLogs_last = FocusLogs_total
End If
If (FocusLogs_numRows > FocusLogs_total) Then
FocusLogs_numRows = FocusLogs_total
End If
End If
%>
<%
' *** Recordset Stats: if we don't know the record count, manually count
them

If (FocusLogs_total = -1) Then

' count the total records by iterating through the recordset
FocusLogs_total=0
While (Not FocusLogs.EOF)
FocusLogs_total = FocusLogs_total + 1
FocusLogs.MoveNext
Wend

' reset the cursor to the beginning
If (FocusLogs.CursorType > 0) Then
FocusLogs.MoveFirst
Else
FocusLogs.Requery
End If

' set the number of rows displayed on this page
If (FocusLogs_numRows < 0 Or FocusLogs_numRows > FocusLogs_total) Then
FocusLogs_numRows = FocusLogs_total
End If

' set the first and last displayed record
FocusLogs_first = 1
FocusLogs_last = FocusLogs_first + FocusLogs_numRows - 1

If (FocusLogs_first > FocusLogs_total) Then
FocusLogs_first = FocusLogs_total
End If
If (FocusLogs_last > FocusLogs_total) Then
FocusLogs_last = FocusLogs_total
End If

End If
%>
<%
Dim MM_paramName
%>
<%
' *** Move To Record and Go To Record: declare variables

Set MM_rs = FocusLogs
MM_rsCount = FocusLogs_total
MM_size = FocusLogs_numRows
MM_uniqueCol = ""
MM_paramName = ""
MM_offset = 0
MM_atTotal = false
MM_paramIsDefined = false
If (MM_paramName <> "") Then
MM_paramIsDefined = (Request.QueryString(MM_paramName) <> "")
End If
%>

<%
' *** Move To Record: handle 'index' or 'offset' parameter

if (Not MM_paramIsDefined And MM_rsCount <> 0) then

' use index parameter if defined, otherwise use offset parameter
r = Request.QueryString("index")
If r = "" Then r = Request.QueryString("offset")
If r <> "" Then MM_offset = Int(r)

' if we have a record count, check if we are past the end of the
recordset
If (MM_rsCount <> -1) Then
If (MM_offset >= MM_rsCount Or MM_offset = -1) Then ' past end or
move last
If ((MM_rsCount Mod MM_size) > 0) Then ' last page not a
full repeat region
MM_offset = MM_rsCount - (MM_rsCount Mod MM_size)
Else
MM_offset = MM_rsCount - MM_size
End If
End If
End If

' move the cursor to the selected record
i = 0
While ((Not MM_rs.EOF) And (i < MM_offset Or MM_offset = -1))
MM_rs.MoveNext
i = i + 1
Wend
If (MM_rs.EOF) Then MM_offset = i ' set MM_offset to the last
possible record

End If
%>
<%
' *** Move To Record: if we dont know the record count, check the
display range

If (MM_rsCount = -1) Then

' walk to the end of the display range for this page
i = MM_offset
While (Not MM_rs.EOF And (MM_size < 0 Or i < MM_offset + MM_size))
MM_rs.MoveNext
i = i + 1
Wend

' if we walked off the end of the recordset, set MM_rsCount and
MM_size
If (MM_rs.EOF) Then
MM_rsCount = i
If (MM_size < 0 Or MM_size > MM_rsCount) Then MM_size = MM_rsCount
End If

' if we walked off the end, set the offset based on page size
If (MM_rs.EOF And Not MM_paramIsDefined) Then
If (MM_offset > MM_rsCount - MM_size Or MM_offset = -1) Then
If ((MM_rsCount Mod MM_size) > 0) Then
MM_offset = MM_rsCount - (MM_rsCount Mod MM_size)
Else
MM_offset = MM_rsCount - MM_size
End If
End If
End If

' reset the cursor to the beginning
If (MM_rs.CursorType > 0) Then
MM_rs.MoveFirst
Else
MM_rs.Requery
End If

' move the cursor to the selected record
i = 0
While (Not MM_rs.EOF And i < MM_offset)
MM_rs.MoveNext
i = i + 1
Wend
End If
%>
<%
' *** Move To Record: update recordset stats

' set the first and last displayed record
FocusLogs_first = MM_offset + 1
FocusLogs_last = MM_offset + MM_size
If (MM_rsCount <> -1) Then
If (FocusLogs_first > MM_rsCount) Then FocusLogs_first = MM_rsCount
If (FocusLogs_last > MM_rsCount) Then FocusLogs_last = MM_rsCount
End If

' set the boolean used by hide region to check if we are on the last
record
MM_atTotal = (MM_rsCount <> -1 And MM_offset + MM_size >= MM_rsCount)
%>
<%
' *** Go To Record and Move To Record: create strings for maintaining
URL and Form parameters

' create the list of parameters which should not be maintained
MM_removeList = "&index="
If (MM_paramName <> "") Then MM_removeList = MM_removeList & "&" &
MM_paramName & "="
MM_keepURL="":MM_keepForm="":MM_keepBoth="":MM_keepNone=""

' add the URL parameters to the MM_keepURL string
For Each Item In Request.QueryString
NextItem = "&" & Item & "="
If (InStr(1,MM_removeList,NextItem,1) = 0) Then
MM_keepURL = MM_keepURL & NextItem &
Server.URLencode(Request.QueryString(Item))
End If
Next

' add the Form variables to the MM_keepForm string
For Each Item In Request.Form
NextItem = "&" & Item & "="
If (InStr(1,MM_removeList,NextItem,1) = 0) Then
MM_keepForm = MM_keepForm & NextItem &
Server.URLencode(Request.Form(Item))
End If
Next

' create the Form + URL string and remove the intial '&' from each of
the strings
MM_keepBoth = MM_keepURL & MM_keepForm
if (MM_keepBoth <> "") Then MM_keepBoth = Right(MM_keepBoth,
Len(MM_keepBoth) - 1)
if (MM_keepURL <> "") Then MM_keepURL = Right(MM_keepURL,
Len(MM_keepURL) - 1)
if (MM_keepForm <> "") Then MM_keepForm = Right(MM_keepForm,
Len(MM_keepForm) - 1)

' a utility function used for adding additional parameters to these
strings
Function MM_joinChar(firstItem)
If (firstItem <> "") Then
MM_joinChar = "&"
Else
MM_joinChar = ""
End If
End Function
%>
<%
' *** Move To Record: set the strings for the first, last, next, and
previous links

MM_keepMove = MM_keepBoth
MM_moveParam = "index"

' if the page has a repeated region, remove 'offset' from the maintained
parameters
If (MM_size > 0) Then
MM_moveParam = "offset"
If (MM_keepMove <> "") Then
params = Split(MM_keepMove, "&")
MM_keepMove = ""
For i = 0 To UBound(params)
nextItem = Left(params(i), InStr(params(i),"=") - 1)
If (StrComp(nextItem,MM_moveParam,1) <> 0) Then
MM_keepMove = MM_keepMove & "&" & params(i)
End If
Next
If (MM_keepMove <> "") Then
MM_keepMove = Right(MM_keepMove, Len(MM_keepMove) - 1)
End If
End If
End If

' set the strings for the move to links
If (MM_keepMove <> "") Then MM_keepMove = MM_keepMove & "&"
urlStr = Request.ServerVariables("URL") & "?" & MM_keepMove &
MM_moveParam & "="
MM_moveFirst = urlStr & "0"
MM_moveLast = urlStr & "-1"
MM_moveNext = urlStr & Cstr(MM_offset + MM_size)
prev = MM_offset - MM_size
If (prev < 0) Then prev = 0
MM_movePrev = urlStr & Cstr(prev)
%>
<html>
<head>
<title>Resident Care Focus Report</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript">
<!--

<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if
((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight;
onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH)
location.reload();
}
MM_reloadPage(true);
// -->

function MM_validateForm() { //v4.0
var
i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
for (i=0; i<(args.length-2); i+=3) { test=args[i+2];
val=MM_findObj(args[i]);
if (val) { nm=val.name; if ((val=val.value)!="") {
if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an
e-mail address.\n';
} else if (test!='R') {
if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
min=test.substring(8,p); max=test.substring(p+1);
if (val<min || max<val) errors+='- '+nm+' must contain a
number between '+min+' and '+max+'.\n';
} } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is
required.\n'; }
} if (errors) alert('The following error(s) occurred:\n'+errors);
document.MM_returnValue = (errors == '');
}

function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document;
if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++)
x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++)
x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function YY_checkform() { //v4.66
//copyright (c)1998,2002 Yaromat.com
var args = YY_checkform.arguments; var myDot=true; var myV=''; var
myErr='';var addErr=false;var myReq;
for (var i=1; i<args.length;i=i+4){
if (args[i+1].charAt(0)=='#'){myReq=true;
args[i+1]=args[i+1].substring(1);}else{myReq=false}
var myObj = MM_findObj(args[i].replace(/\[\d+\]/ig,""));
myV=myObj.value;
if
(myObj.type=='text'||myObj.type=='password'||myObj.type=='hidden'){
if (myReq&&myObj.value.length==0){addErr=true}
if ((myV.length>0)&&(args[i+2]==1)){ //fromto
var myMa=args[i+1].split('_');if(isNaN(myV)||myV<myMa[0]/1||myV
 > myMa[1]/1){addErr=true}
} else if ((myV.length>0)&&(args[i+2]==2)){
var rx=new
RegExp("^[\\w\.=-]+@[\\w\\.-]+\\.[a-z]{2,4}$");if(!rx.test(myV))addErr=t
rue;
} else if ((myV.length>0)&&(args[i+2]==3)){ // date
var myMa=args[i+1].split("#"); var myAt=myV.match(myMa[0]);
if(myAt){
var myD=(myAt[myMa[1]])?myAt[myMa[1]]:1; var
myM=myAt[myMa[2]]-1; var myY=myAt[myMa[3]];
var myDate=new Date(myY,myM,myD);

if(myDate.getFullYear()!=myY||myDate.getDate()!=myD||myDate.getMonth()!=
myM){addErr=true};
}else{addErr=true}
} else if ((myV.length>0)&&(args[i+2]==4)){ // time
var myMa=args[i+1].split("#"); var
myAt=myV.match(myMa[0]);if(!myAt){addErr=true}
} else if (myV.length>0&&args[i+2]==5){ // check this 2
var myObj1 = MM_findObj(args[i+1].replace(/\[\d+\]/ig,""));

if(myObj1.length)myObj1=myObj1[args[i+1].replace(/(.*\[)|(\].*)/ig,"")];
if(!myObj1.checked){addErr=true}
} else if (myV.length>0&&args[i+2]==6){ // the same
var myObj1 = MM_findObj(args[i+1]);
if(myV!=myObj1.value){addErr=true}
}
} else
if (!myObj.type&&myObj.length>0&&myObj[0].type=='radio'){
var myTest = args[i].match(/(.*)\[(\d+)\].*/i);
var myObj1=(myObj.length>1)?myObj[myTest[2]]:myObj;
if
(args[i+2]==1&&myObj1&&myObj1.checked&&MM_findObj(args[i+1]).value.lengt
h/1==0){addErr=true}
if (args[i+2]==2){
var myDot=false;
for(var j=0;j<myObj.length;j++){myDot=myDot||myObj[j].checked}
if(!myDot){myErr+='* ' +args[i+3]+'\n'}
}
} else if (myObj.type=='checkbox'){
if(args[i+2]==1&&myObj.checked==false){addErr=true}

if(args[i+2]==2&&myObj.checked&&MM_findObj(args[i+1]).value.length/1==0)
{addErr=true}
} else if (myObj.type=='select-one'||myObj.type=='select-multiple'){
if(args[i+2]==1&&myObj.selectedIndex/1==0){addErr=true}
}else if (myObj.type=='textarea'){
if(myV.length<args[i+1]){addErr=true}
}
if (addErr){myErr+='* '+args[i+3]+'\n'; addErr=false}
}
if (myErr!=''){alert('The required information is incomplete or
contains errors:\t\t\t\t\t\n\n'+myErr)}
document.MM_returnValue = (myErr=='');
}
//-->
</script>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div id="LyrLogo" style="position:absolute; z-index:1; left: 3; top:
3;"><img src="images/Hickman_Color_without_Star.gif" width="177"
height="27"></div>
<div id="LyrPageReference" style="position:absolute; z-index:3; left:
185; top: 3">
<div align="left"><b><font color="#FF0000" face="Arial, Helvetica,
sans-serif">Resident
Care Focus Report</font></b></div>
</div>
<div id="LyrSubmit" style="position:absolute; width:725px; height:248px;
z-index:4; top: 75">
<form ACTION="<%=MM_editAction%>" METHOD="POST" name="FrmSubmit"
id="FrmSubmit"
onSubmit="YY_checkform('FrmSubmit','ReportDate','^\([0-9][0-9]\)\/\([0-9
][0-9]\)\/\([0-9]{4}\)$#2#1#3','3','Date format must be MM/DD/YYYY
\(e.g. 02/14/2006\)');return document.MM_returnValue">
<table width="100%" border="1" cellpadding="2" cellspacing="0"
bordercolor="#000000" bgcolor="#A8A8A8" id="TblSubmit"
name="TblSubmitLog">
<tr bgcolor="#000000">
<td> <div align="center"><b><font face="Arial, Helvetica,
sans-serif" size="1" color="#FFFFFF">Focus
Report Date (mm/dd/yyyy)</font></b></div></td>
<td> <div align="center"><b><font face="Arial, Helvetica,
sans-serif" size="1" color="#FFFFFF">Resident</font></b></div></td>
<td> <div align="center"><b><font face="Arial, Helvetica,
sans-serif" size="1" color="#FFFFFF">Your
Name</font></b></div></td>
</tr>
<tr>
<td> <div align="center"><font face="Arial, Helvetica,
sans-serif" size="1">
<input name="ReportDate" type="text" id="ReportDate"
size="8" maxlength="10">
</font></div></td>
<td> <div align="center"><font face="Arial, Helvetica,
sans-serif" size="1">
<select name="Resident" id="Resident">
<%
While (NOT CurrentResidents.EOF)
%>
<option
value="<%=(CurrentResidents.Fields.Item("FullName").Value)%>"><%=(Curren
tResidents.Fields.Item("FullName").Value)%></option>
<%
CurrentResidents.MoveNext()
Wend
If (CurrentResidents.CursorType > 0) Then
CurrentResidents.MoveFirst
Else
CurrentResidents.Requery
End If
%>
</select>
</font></div></td>
<td> <div align="center"><font face="Arial, Helvetica,
sans-serif" size="1">
</font></div>
<div align="center"><font face="Arial, Helvetica, sans-serif"
size="1">
<select name="Employee">
<%
While (NOT CurrentStaff.EOF)
%>
<option
value="<%=(CurrentStaff.Fields.Item("Employee").Value)%>"><%=(CurrentSta
ff.Fields.Item("Employee").Value)%></option>
<%
CurrentStaff.MoveNext()
Wend
If (CurrentStaff.CursorType > 0) Then
CurrentStaff.MoveFirst
Else
CurrentStaff.Requery
End If
%>
</select>
</font></div></td>
</tr>
<tr bgcolor="#000000">
<td colspan="3"> <div align="center"><font color="#FFFFFF"
size="1" face="Arial, Helvetica, sans-serif"><strong>Focus
Log </strong><b><br>
</b>Include Data, Action, Response, and Other
Information.</font></div></td>
</tr>
<tr>
<td colspan="3"> <div align="center"><font face="Arial,
Helvetica, sans-serif" size="1">
<textarea name="FocusCareLog" cols="85" rows="5"
id="FocusCareLog"></textarea>
<br>
<input type="submit" name="Submit" value="Save Report"
onClick="MM_validateForm('ReportDate','','R','FocusCareLog','','R');retu
rn document.MM_returnValue">
<input type="reset" name="Submit2" value="Reset Form">
</font></div></td>
</tr>
</table>
<input type="hidden" name="MM_insert" value="FrmSubmit">
</form>
</div>
<div id="LyrUnusualIncidentList" style="position:absolute; width:725;
height:115px; z-index:5; top: 300;">
<form action="" method="post" name="frmlistresults"
id="frmlistresults">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><strong><font color="#339966" face="Arial, Helvetica,
sans-serif">
<font color="#FF0000"><%=(FocusLogs_first)%></font> to <font
color="#FF0000"><%=(FocusLogs_last)%></font> of <font
color="#FF0000"><%=(FocusLogs_total)%></font> Focus
Reports</font></strong></td>
<td> <div align="center"><font color="#0000FF" size="2"
face="Arial, Helvetica, sans-serif">
<% TM_navLinks=0
If MM_offset <> 0 Then
Response.Write("First")
else
Response.Write("First")
End If
Response.Write(" | ")
If MM_offset <> 0 Then
Response.Write("Previous")
else
Response.Write("Previous")
End If
Response.Write(" | ")
If Not MM_atTotal Then
Response.Write("Next")
else
Response.Write("Next")
End If
Response.Write(" | ")
If Not MM_atTotal Then
Response.Write("Last")
else
Response.Write("Last")
End If
%>
  </font></div></td>
</tr>
</table>
<table border="1" cellpadding="1" cellspacing="0"
bordercolor="#000000" id="TblListResults">
<tr bgcolor="#000000">
<td nowrap>
<div align="center"><font color="#FFFFFF" size="1" face="Arial,
Helvetica, sans-serif">Date</font></div></td>
<td nowrap>
<div align="center"><font color="#FFFFFF" size="1" face="Arial,
Helvetica, sans-serif">Employee</font></div></td>
<td nowrap>
<div align="center"><font color="#FFFFFF" size="1" face="Arial,
Helvetica, sans-serif">Resident</font></div></td>
<td><div align="center"><font color="#FFFFFF" size="1"
face="Arial, Helvetica, sans-serif">Focus
Log</font></div></td>
</tr>
<%
While ((Repeat1__numRows <> 0) AND (NOT FocusLogs.EOF))
%>
<tr>
<td nowrap>
<div align="center"><font size="1" face="Arial, Helvetica,
sans-serif"><A HREF="FocusReportEdit.asp?<%= MM_keepNone &
MM_joinChar(MM_keepNone) & "ID=" & FocusLogs.Fields.Item("ID").Value
%>"><%=(FocusLogs.Fields.Item("ReportDate").Value)%></A>
</font></div></td>
<td nowrap>
<div align="center"><font size="1" face="Arial, Helvetica,
sans-serif"><%=(FocusLogs.Fields.Item("Employee").Value)%></font></div><
/td>
<td nowrap>
<div align="center"><font size="1" face="Arial, Helvetica,
sans-serif"><%=(FocusLogs.Fields.Item("Resident").Value)%></font></div><
/td>
<td><font color="#993333" size="1" face="Arial, Helvetica,
sans-serif">Submitted
on
<%=(FocusLogs.Fields.Item("SubmitDate").Value)%></font><font size="1"
face="Arial, Helvetica, sans-serif"><br>
<%=(FocusLogs.Fields.Item("FocusReport").Value)%> </font></td>
</tr>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
FocusLogs.MoveNext()
Wend
%>
</table>
</form>
</div>
<div id="LyrLink" style="position:absolute; z-index:4; left: 410; top:
3">
<div align="center">
<table border="1" cellpadding="1" cellspacing="0"
bordercolor="#CCCCCC">
<tr bgcolor="#CCCCCC">
<td nowrap><font size="2" face="Arial, Helvetica, sans-serif"><a
href="FocusReportSearch.asp">Search
Reports</a></font></td>
<td nowrap> <font size="2" face="Arial, Helvetica, sans-serif"
color="#0000FF"><a href="pcare.htm">Resident
Care Home </a></font> </td>
<td nowrap><font size="2" face="Arial, Helvetica, sans-serif"><a
href="FocusReport-RN.asp">Assessment
Tool</a></font></td>
</tr>
</table>

</div>
</div>
</body>
</html>
<%
CurrentResidents.Close()
Set CurrentResidents = Nothing
%>
<%
CurrentStaff.Close()
Set CurrentStaff = Nothing
%>
<%
FocusLogs.Close()
Set FocusLogs = Nothing
%>



*** Sent via Developersdex <a style='text-decoration: underline;' href="http://www.developersdex.com" target="_blank">http://www.developersdex.com</a> ***
Don't just participate in USENET...get rewarded for it!<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: ASP 0113 Error When Upgraded to IIS 6 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
DCOM Error - Everytime I try to browse the Default Web site it gives me a 500 error and the event log contains a DCOM error as shown below. Why is this happening? DCOM got error "Overlapped I/O operation is in progress. " and was unable to logon .\IWAM...

DCOM error - I have a W2k server running IIS 5 that I had to replace the new boot disk on. I replaced it and restored the system & files. After the restore I can't get my Citrix web site to come up. I cannot access the IIS Admin snap- in. I am getting a DC...

event error - My server always facing problem in Envent Viewer Manager, where it showns Service Log Error for Service Manager with world wide web publish error ! How to solve this ? This problem happen when many people log in the web-site ! -- Regards. Thanks. ..

Installing, get MSDTC Error Pop Up - I am trying to install IIS on a Win 2000 Pro machine. Towards the end of the install (around when the dialog states it is "Configuring IIS") an Error message pops up "An MSDTC Error Has occured. Windows will have to restart..." ...

IIS Error- Unexpected error 0x8ffe2742 - hi, I'm using IIS 5.1 on Windows XP platform. My localhost is not running. I uninstalled IIS & re-installed it but of no use. My local website has stopped, when i start it , it gives "unexpected error 0x8ffe2742 occured". I have tried t...
   Web Hosting and Web Master Forums (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]